diff options
author | Mattes D <github@xoft.cz> | 2014-09-10 08:36:33 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-10 08:36:33 +0200 |
commit | 76d5aa1d51b618905019f72ca4388aed75941e7e (patch) | |
tree | d39589ef7a48771b05f1d2adb96e6c869262bc00 /src/ClientHandle.cpp | |
parent | Merge pull request #1399 from mc-server/warnings (diff) | |
parent | Removed old sound-configuration for SignPosts (diff) | |
download | cuberite-76d5aa1d51b618905019f72ca4388aed75941e7e.tar cuberite-76d5aa1d51b618905019f72ca4388aed75941e7e.tar.gz cuberite-76d5aa1d51b618905019f72ca4388aed75941e7e.tar.bz2 cuberite-76d5aa1d51b618905019f72ca4388aed75941e7e.tar.lz cuberite-76d5aa1d51b618905019f72ca4388aed75941e7e.tar.xz cuberite-76d5aa1d51b618905019f72ca4388aed75941e7e.tar.zst cuberite-76d5aa1d51b618905019f72ca4388aed75941e7e.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 6b31bfa64..a6d7c3066 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1448,7 +1448,7 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, e NewBlock->OnPlacedByPlayer(ChunkInterface, *World, m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, BlockType, BlockMeta); // Step sound with 0.8f pitch is used as block placement sound - World->BroadcastSoundEffect(NewBlock->GetStepSound(), (double)a_BlockX, (double)a_BlockY, (double)a_BlockZ, 1.0f, 0.8f); + World->BroadcastSoundEffect(cBlockInfo::GetPlaceSound(BlockType), (double)a_BlockX, (double)a_BlockY, (double)a_BlockZ, 1.0f, 0.8f); cRoot::Get()->GetPluginManager()->CallHookPlayerPlacedBlock(*m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, BlockType, BlockMeta); } |