diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-09 20:56:50 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-09 20:56:50 +0200 |
commit | 74b6b398e7e5a2384f398b7dceaf45716bc70b6f (patch) | |
tree | e8230be6a04a1c001e4855cad11626d3c1d16271 /src/Entities/Pickup.cpp | |
parent | Merge pull request #1135 from mc-server/fixes (diff) | |
download | cuberite-74b6b398e7e5a2384f398b7dceaf45716bc70b6f.tar cuberite-74b6b398e7e5a2384f398b7dceaf45716bc70b6f.tar.gz cuberite-74b6b398e7e5a2384f398b7dceaf45716bc70b6f.tar.bz2 cuberite-74b6b398e7e5a2384f398b7dceaf45716bc70b6f.tar.lz cuberite-74b6b398e7e5a2384f398b7dceaf45716bc70b6f.tar.xz cuberite-74b6b398e7e5a2384f398b7dceaf45716bc70b6f.tar.zst cuberite-74b6b398e7e5a2384f398b7dceaf45716bc70b6f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Pickup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Pickup.cpp b/src/Entities/Pickup.cpp index 10b6bbd5c..24fa591da 100644 --- a/src/Entities/Pickup.cpp +++ b/src/Entities/Pickup.cpp @@ -224,7 +224,7 @@ bool cPickup::CollectedBy(cPlayer * a_Dest) } m_Item.m_ItemCount -= NumAdded; - m_World->BroadcastCollectPickup(*this, *a_Dest); + m_World->BroadcastCollectEntity(*this, *a_Dest); // Also send the "pop" sound effect with a somewhat random pitch (fast-random using EntityID ;) m_World->BroadcastSoundEffect("random.pop",(int)GetPosX() * 8, (int)GetPosY() * 8, (int)GetPosZ() * 8, 0.5, (float)(0.75 + ((float)((GetUniqueID() * 23) % 32)) / 64)); if (m_Item.m_ItemCount <= 0) |