From 860eedd3d71437252a1c1d10f80cfcef1f4465c8 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 26 Jul 2020 16:07:37 +0100 Subject: Toggleables: update simulators when changed --- src/Blocks/BlockLever.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Blocks/BlockLever.h') diff --git a/src/Blocks/BlockLever.h b/src/Blocks/BlockLever.h index 4a682322d..7f028b61f 100644 --- a/src/Blocks/BlockLever.h +++ b/src/Blocks/BlockLever.h @@ -3,6 +3,7 @@ #include "BlockHandler.h" #include "../Chunk.h" #include "Mixins.h" +#include "BlockButton.h" #include "BlockSlab.h" @@ -35,7 +36,7 @@ public: NIBBLETYPE Meta = (a_ChunkInterface.GetBlockMeta(a_BlockPos) ^ 0x08); a_ChunkInterface.SetBlockMeta(a_BlockPos, Meta); - a_WorldInterface.WakeUpSimulators(a_BlockPos); + cBlockButtonHandler::WakeUpSimulators(a_WorldInterface, a_BlockPos); a_WorldInterface.GetBroadcastManager().BroadcastSoundEffect("block.lever.click", a_BlockPos, 0.5f, (Meta & 0x08) ? 0.6f : 0.5f); return true; } -- cgit v1.2.3