diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-03-02 16:01:37 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-03-02 16:01:37 +0100 |
commit | e4b2502896febbbf1d53fee1970e973bc6afde04 (patch) | |
tree | caa595d1275ec844c8d89ae037a95991f465d5a6 /src/Blocks/BlockTrapdoor.h | |
parent | Use switch in GetStepSound (diff) | |
download | cuberite-e4b2502896febbbf1d53fee1970e973bc6afde04.tar cuberite-e4b2502896febbbf1d53fee1970e973bc6afde04.tar.gz cuberite-e4b2502896febbbf1d53fee1970e973bc6afde04.tar.bz2 cuberite-e4b2502896febbbf1d53fee1970e973bc6afde04.tar.lz cuberite-e4b2502896febbbf1d53fee1970e973bc6afde04.tar.xz cuberite-e4b2502896febbbf1d53fee1970e973bc6afde04.tar.zst cuberite-e4b2502896febbbf1d53fee1970e973bc6afde04.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockTrapdoor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Blocks/BlockTrapdoor.h b/src/Blocks/BlockTrapdoor.h index 08fc28327..251044afd 100644 --- a/src/Blocks/BlockTrapdoor.h +++ b/src/Blocks/BlockTrapdoor.h @@ -36,8 +36,10 @@ public: { // Flip the ON bit on/off using the XOR bitwise operation NIBBLETYPE Meta = (a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ) ^ 0x04); - a_ChunkInterface.SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, Meta); + + cWorld * World = (cWorld *) &a_WorldInterface; + World->BroadcastSoundParticleEffect(1003, a_BlockX, a_BlockY, a_BlockZ, 0, a_Player->GetClientHandle()); } virtual bool GetPlacementBlockTypeMeta( |