summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-12 18:14:32 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-12 18:14:32 +0200
commit20f3757d54cb755365a1c2969bc879af372a3d27 (patch)
tree66a727802f2fa9f05506d5f138fe18fb11d73696 /src
parentFixed block place sounds. (diff)
downloadcuberite-20f3757d54cb755365a1c2969bc879af372a3d27.tar
cuberite-20f3757d54cb755365a1c2969bc879af372a3d27.tar.gz
cuberite-20f3757d54cb755365a1c2969bc879af372a3d27.tar.bz2
cuberite-20f3757d54cb755365a1c2969bc879af372a3d27.tar.lz
cuberite-20f3757d54cb755365a1c2969bc879af372a3d27.tar.xz
cuberite-20f3757d54cb755365a1c2969bc879af372a3d27.tar.zst
cuberite-20f3757d54cb755365a1c2969bc879af372a3d27.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 02c2f4c56..859185412 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1465,7 +1465,7 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, e
Volume = 0.65f;
}
- World->BroadcastSoundEffect(PlaceSound, (double)a_BlockX, (double)a_BlockY, (double)a_BlockZ, Volume, Pitch);
+ World->BroadcastSoundEffect(PlaceSound, a_BlockX + 0.5, a_BlockY + 0.5, a_BlockZ + 0.5, Volume, Pitch);
cRoot::Get()->GetPluginManager()->CallHookPlayerPlacedBlock(*m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, BlockType, BlockMeta);
}