summaryrefslogtreecommitdiffstats
path: root/src/Entities/ProjectileEntity.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2014-02-16 08:05:11 +0100
committerAlexander Harkness <bearbin@gmail.com>2014-02-16 08:05:11 +0100
commit233f0add2930f316c5fafce9e29a12f2e4f007bc (patch)
tree8007f9a88f30eb7b209c68e9ab2a88bb290d382b /src/Entities/ProjectileEntity.cpp
parentRemoved the unnecessary LoopPlayersAndBroadcastChat() functions. (diff)
parentReplace random Float Generation and broadcast the Exp Pickup Sound (diff)
downloadcuberite-233f0add2930f316c5fafce9e29a12f2e4f007bc.tar
cuberite-233f0add2930f316c5fafce9e29a12f2e4f007bc.tar.gz
cuberite-233f0add2930f316c5fafce9e29a12f2e4f007bc.tar.bz2
cuberite-233f0add2930f316c5fafce9e29a12f2e4f007bc.tar.lz
cuberite-233f0add2930f316c5fafce9e29a12f2e4f007bc.tar.xz
cuberite-233f0add2930f316c5fafce9e29a12f2e4f007bc.tar.zst
cuberite-233f0add2930f316c5fafce9e29a12f2e4f007bc.zip
Diffstat (limited to 'src/Entities/ProjectileEntity.cpp')
-rw-r--r--src/Entities/ProjectileEntity.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp
index a3fa9d557..ef82c6e94 100644
--- a/src/Entities/ProjectileEntity.cpp
+++ b/src/Entities/ProjectileEntity.cpp
@@ -680,6 +680,7 @@ super(pkExpBottle, a_Creator, a_X, a_Y, a_Z, 0.25, 0.25)
void cExpBottleEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace)
{
// Spawn an experience orb with a reward between 3 and 11.
+ m_World->BroadcastSoundParticleEffect(2002, POSX_TOINT, POSY_TOINT, POSZ_TOINT, 0);
m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), 3 + m_World->GetTickRandomNumber(8));
Destroy();