summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockLever.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-07-26 17:07:37 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-07-26 17:07:37 +0200
commit860eedd3d71437252a1c1d10f80cfcef1f4465c8 (patch)
treee84f97fe321108261040376494a3857b93b50e39 /src/Blocks/BlockLever.h
parentClang Tidy fix (diff)
downloadcuberite-860eedd3d71437252a1c1d10f80cfcef1f4465c8.tar
cuberite-860eedd3d71437252a1c1d10f80cfcef1f4465c8.tar.gz
cuberite-860eedd3d71437252a1c1d10f80cfcef1f4465c8.tar.bz2
cuberite-860eedd3d71437252a1c1d10f80cfcef1f4465c8.tar.lz
cuberite-860eedd3d71437252a1c1d10f80cfcef1f4465c8.tar.xz
cuberite-860eedd3d71437252a1c1d10f80cfcef1f4465c8.tar.zst
cuberite-860eedd3d71437252a1c1d10f80cfcef1f4465c8.zip
Diffstat (limited to 'src/Blocks/BlockLever.h')
-rw-r--r--src/Blocks/BlockLever.h3
1 files changed, 2 insertions, 1 deletions
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;
}