summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-21 18:08:05 +0200
committermadmaxoft <github@xoft.cz>2013-09-21 18:08:30 +0200
commit405d434c06bc3094ed70c2f20b3849273e1fbdd2 (patch)
tree6ecce434c94a9ce3366691e87a3871c5685f7876 /source/ClientHandle.cpp
parentMerge pull request #179 from tonibm19/patch-6 (diff)
downloadcuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar.gz
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar.bz2
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar.lz
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar.xz
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar.zst
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.zip
Diffstat (limited to '')
-rw-r--r--source/ClientHandle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index 1806ce8e6..9ae6095b6 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -735,6 +735,7 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
cWorld * World = m_Player->GetWorld();
ItemHandler->OnBlockDestroyed(World, m_Player, m_Player->GetEquippedItem(), a_BlockX, a_BlockY, a_BlockZ);
+ // The ItemHandler is also responsible for spawning the pickups
BlockHandler(a_OldBlock)->OnDestroyedByPlayer(World, m_Player, a_BlockX, a_BlockY, a_BlockZ);
World->BroadcastSoundParticleEffect(2001, a_BlockX * 8, a_BlockY * 8, a_BlockZ * 8, a_OldBlock, this);