summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorMasy98 <masy@antheruscraft.de>2014-09-09 16:00:26 +0200
committerMasy98 <masy@antheruscraft.de>2014-09-09 16:00:26 +0200
commitacae3c9c657e48d0dc8c4b2965e5b3d69c53b279 (patch)
tree09b8c7282fe44d2c44e4e65546186a2b4580d4f0 /src/ClientHandle.cpp
parentWebadmin: Added default ports to auto-generated ini file. (diff)
downloadcuberite-acae3c9c657e48d0dc8c4b2965e5b3d69c53b279.tar
cuberite-acae3c9c657e48d0dc8c4b2965e5b3d69c53b279.tar.gz
cuberite-acae3c9c657e48d0dc8c4b2965e5b3d69c53b279.tar.bz2
cuberite-acae3c9c657e48d0dc8c4b2965e5b3d69c53b279.tar.lz
cuberite-acae3c9c657e48d0dc8c4b2965e5b3d69c53b279.tar.xz
cuberite-acae3c9c657e48d0dc8c4b2965e5b3d69c53b279.tar.zst
cuberite-acae3c9c657e48d0dc8c4b2965e5b3d69c53b279.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp2
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);
}