diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-29 13:27:03 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-29 13:27:03 +0100 |
commit | 374034e615e6c7aee2f5b0262bcb0548a3093819 (patch) | |
tree | a2929e4d85de69465ce27df5abfe4304bb503e32 /src/Entities/ProjectileEntity.cpp | |
parent | Added 1.7.4 to the list of supported protocols. (diff) | |
download | cuberite-374034e615e6c7aee2f5b0262bcb0548a3093819.tar cuberite-374034e615e6c7aee2f5b0262bcb0548a3093819.tar.gz cuberite-374034e615e6c7aee2f5b0262bcb0548a3093819.tar.bz2 cuberite-374034e615e6c7aee2f5b0262bcb0548a3093819.tar.lz cuberite-374034e615e6c7aee2f5b0262bcb0548a3093819.tar.xz cuberite-374034e615e6c7aee2f5b0262bcb0548a3093819.tar.zst cuberite-374034e615e6c7aee2f5b0262bcb0548a3093819.zip |
Diffstat (limited to 'src/Entities/ProjectileEntity.cpp')
-rw-r--r-- | src/Entities/ProjectileEntity.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp index 12ce9a303..16b832539 100644 --- a/src/Entities/ProjectileEntity.cpp +++ b/src/Entities/ProjectileEntity.cpp @@ -679,7 +679,8 @@ super(pkExpBottle, a_Creator, a_X, a_Y, a_Z, 0.25, 0.25) void cExpBottleEntity::OnHitSolidBlock(const Vector3d & a_HitPos, char a_HitFace) { - // TODO: Spawn experience orbs + // Spawn an experience orb with a reward between 3 and 11. + m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), 3 + m_World->GetTickRandomNumber(8)); Destroy(); } |