summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-12 13:28:06 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-12 13:28:06 +0200
commitbee615b75b3cd98335beaa8f5a6c4487ccccb0fd (patch)
tree26180f7088ee6ad69832f7af46182606a8c66489 /src/ClientHandle.cpp
parentFixed many right click issues. (diff)
parentFixed a redstone sim failure with droppers. (diff)
downloadcuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar
cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.gz
cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.bz2
cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.lz
cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.xz
cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.zst
cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.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 642a5246a..80bd4462b 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1467,7 +1467,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);
}