summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockButton.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-02 19:46:00 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-02 19:46:00 +0200
commit19caba5125e457a9663102989ea717898e3c2827 (patch)
tree5ddd30ef142ad0f6d962e851c275687f5ab07f2e /src/Blocks/BlockButton.h
parentFixed printf formats for Win builds (diff)
downloadcuberite-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 '')
-rw-r--r--src/Blocks/BlockButton.h1
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)