diff options
author | Mattes D <github@xoft.cz> | 2014-03-03 20:52:08 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-03 20:52:08 +0100 |
commit | 71ae689eb71ce5ced58b19460a8d8137722ce357 (patch) | |
tree | acbb99403541d778513d4e2dcfd243a19c368bc9 /src/Blocks/BlockTrapdoor.h | |
parent | Merge pull request #748 from xdot/master (diff) | |
parent | Add cancelling to WeatherChanging event. (diff) | |
download | cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar.gz cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar.bz2 cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar.lz cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar.xz cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar.zst cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.zip |
Diffstat (limited to 'src/Blocks/BlockTrapdoor.h')
-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 70a369e69..a28861e69 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( |