summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-18 13:54:17 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-18 13:54:17 +0200
commit200ea6254c28b73d419001ea1be7d2d4d1d1ee88 (patch)
tree509859b7241e36a62c312fa2a3086684c125048a /src/Mobs
parentRemoved unsupported C++11 features. (diff)
downloadcuberite-200ea6254c28b73d419001ea1be7d2d4d1d1ee88.tar
cuberite-200ea6254c28b73d419001ea1be7d2d4d1d1ee88.tar.gz
cuberite-200ea6254c28b73d419001ea1be7d2d4d1d1ee88.tar.bz2
cuberite-200ea6254c28b73d419001ea1be7d2d4d1d1ee88.tar.lz
cuberite-200ea6254c28b73d419001ea1be7d2d4d1d1ee88.tar.xz
cuberite-200ea6254c28b73d419001ea1be7d2d4d1d1ee88.tar.zst
cuberite-200ea6254c28b73d419001ea1be7d2d4d1d1ee88.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index d63758b3d..27bd28045 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -540,7 +540,7 @@ void cMonster::KilledBy(cEntity * a_Killer)
break;
}
}
- if (a_Killer != NULL)
+ if ((a_Killer != NULL) && (!IsBaby())
{
m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), Reward);
}