diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-02 19:46:00 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-02 19:46:00 +0200 |
commit | 19caba5125e457a9663102989ea717898e3c2827 (patch) | |
tree | 5ddd30ef142ad0f6d962e851c275687f5ab07f2e /src/Blocks/BlockButton.h | |
parent | Fixed printf formats for Win builds (diff) | |
download | cuberite-19caba5125e457a9663102989ea717898e3c2827.tar cuberite-19caba5125e457a9663102989ea717898e3c2827.tar.gz cuberite-19caba5125e457a9663102989ea717898e3c2827.tar.bz2 cuberite-19caba5125e457a9663102989ea717898e3c2827.tar.lz cuberite-19caba5125e457a9663102989ea717898e3c2827.tar.xz cuberite-19caba5125e457a9663102989ea717898e3c2827.tar.zst cuberite-19caba5125e457a9663102989ea717898e3c2827.zip |
Diffstat (limited to 'src/Blocks/BlockButton.h')
-rw-r--r-- | src/Blocks/BlockButton.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Blocks/BlockButton.h b/src/Blocks/BlockButton.h index 7d9af207d..ada7d58f7 100644 --- a/src/Blocks/BlockButton.h +++ b/src/Blocks/BlockButton.h @@ -23,6 +23,7 @@ public: NIBBLETYPE Meta = (a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ) | 0x08); a_ChunkInterface.SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, Meta); + a_WorldInterface.WakeUpSimulators(a_BlockX, a_BlockY, a_BlockZ); a_WorldInterface.GetBroadcastManager().BroadcastSoundEffect("random.click", a_BlockX * 8, a_BlockY * 8, a_BlockZ * 8, 0.5f, (Meta & 0x08) ? 0.6f : 0.5f); // Queue a button reset (unpress) |