summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-06-22 20:56:24 +0200
committerMattes D <github@xoft.cz>2014-06-22 20:56:24 +0200
commitfe95dfa7588dc7173bea0b6c38e9b11243ccf792 (patch)
tree4e46a3cd5351e53bc6b8d491ec99fdf8fb6fa1f8 /src/Blocks
parentMerge branch 'master' of https://github.com/mc-server/MCServer (diff)
parentChanged 0xFFFFFFFB to ~0x04 (diff)
downloadcuberite-fe95dfa7588dc7173bea0b6c38e9b11243ccf792.tar
cuberite-fe95dfa7588dc7173bea0b6c38e9b11243ccf792.tar.gz
cuberite-fe95dfa7588dc7173bea0b6c38e9b11243ccf792.tar.bz2
cuberite-fe95dfa7588dc7173bea0b6c38e9b11243ccf792.tar.lz
cuberite-fe95dfa7588dc7173bea0b6c38e9b11243ccf792.tar.xz
cuberite-fe95dfa7588dc7173bea0b6c38e9b11243ccf792.tar.zst
cuberite-fe95dfa7588dc7173bea0b6c38e9b11243ccf792.zip
Diffstat (limited to 'src/Blocks')
-rw-r--r--src/Blocks/BlockDoor.cpp7
-rw-r--r--src/Blocks/BlockFenceGate.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/Blocks/BlockDoor.cpp b/src/Blocks/BlockDoor.cpp
index fb2d6f2dc..934a01994 100644
--- a/src/Blocks/BlockDoor.cpp
+++ b/src/Blocks/BlockDoor.cpp
@@ -45,9 +45,16 @@ void cBlockDoorHandler::OnDestroyed(cChunkInterface & a_ChunkInterface, cWorldIn
void cBlockDoorHandler::OnUse(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ)
{
+ UNUSED(a_WorldInterface);
+ UNUSED(a_BlockFace);
+ UNUSED(a_CursorX);
+ UNUSED(a_CursorY);
+ UNUSED(a_CursorZ);
+
if (a_ChunkInterface.GetBlock(a_BlockX, a_BlockY, a_BlockZ) == E_BLOCK_WOODEN_DOOR)
{
ChangeDoor(a_ChunkInterface, a_BlockX, a_BlockY, a_BlockZ);
+ a_Player->GetWorld()->BroadcastSoundParticleEffect(1003, a_BlockX, a_BlockY, a_BlockZ, 0, a_Player->GetClientHandle());
}
}
diff --git a/src/Blocks/BlockFenceGate.h b/src/Blocks/BlockFenceGate.h
index e202c6610..e992870d4 100644
--- a/src/Blocks/BlockFenceGate.h
+++ b/src/Blocks/BlockFenceGate.h
@@ -45,6 +45,7 @@ public:
// Standing aside - use last direction
a_ChunkInterface.SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, OldMetaData);
}
+ a_Player->GetWorld()->BroadcastSoundParticleEffect(1003, a_BlockX, a_BlockY, a_BlockZ, 0, a_Player->GetClientHandle());
}