diff options
author | gaurav sehgal <gauravsehgal93@gmail.com> | 2016-07-07 09:55:07 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-07-07 09:55:07 +0200 |
commit | 97b9422a3e49af9716914001ae432ecdf1818fb0 (patch) | |
tree | 9a574aa898ef583978f56cee926e66cffdfb5a4c /src/Blocks/BlockTrapdoor.h | |
parent | Added Server OS section pr template (#3254) (diff) | |
download | cuberite-97b9422a3e49af9716914001ae432ecdf1818fb0.tar cuberite-97b9422a3e49af9716914001ae432ecdf1818fb0.tar.gz cuberite-97b9422a3e49af9716914001ae432ecdf1818fb0.tar.bz2 cuberite-97b9422a3e49af9716914001ae432ecdf1818fb0.tar.lz cuberite-97b9422a3e49af9716914001ae432ecdf1818fb0.tar.xz cuberite-97b9422a3e49af9716914001ae432ecdf1818fb0.tar.zst cuberite-97b9422a3e49af9716914001ae432ecdf1818fb0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockTrapdoor.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Blocks/BlockTrapdoor.h b/src/Blocks/BlockTrapdoor.h index e9e1f7794..71fe4c6bb 100644 --- a/src/Blocks/BlockTrapdoor.h +++ b/src/Blocks/BlockTrapdoor.h @@ -39,9 +39,7 @@ 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 = static_cast<cWorld *>(&a_WorldInterface); - World->BroadcastSoundParticleEffect(EffectID::SFX_RANDOM_DOOR_OPEN_CLOSE, a_BlockX, a_BlockY, a_BlockZ, 0, a_Player->GetClientHandle()); + a_WorldInterface.GetBroadcastManager().BroadcastSoundParticleEffect(EffectID::SFX_RANDOM_DOOR_OPEN_CLOSE, a_BlockX, a_BlockY, a_BlockZ, 0, a_Player->GetClientHandle()); return true; } |