summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Sheep.cpp
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2017-10-21 18:55:46 +0200
committerAlexander Harkness <me@bearbin.net>2017-10-21 18:55:46 +0200
commite585595ae64cc5523547c95cb8bebeb8e60f141b (patch)
tree846fb44a8699cf7a739e18c69490e46ab788b382 /src/Mobs/Sheep.cpp
parentFix minecart deceleration (#4059) (diff)
downloadcuberite-e585595ae64cc5523547c95cb8bebeb8e60f141b.tar
cuberite-e585595ae64cc5523547c95cb8bebeb8e60f141b.tar.gz
cuberite-e585595ae64cc5523547c95cb8bebeb8e60f141b.tar.bz2
cuberite-e585595ae64cc5523547c95cb8bebeb8e60f141b.tar.lz
cuberite-e585595ae64cc5523547c95cb8bebeb8e60f141b.tar.xz
cuberite-e585595ae64cc5523547c95cb8bebeb8e60f141b.tar.zst
cuberite-e585595ae64cc5523547c95cb8bebeb8e60f141b.zip
Diffstat (limited to 'src/Mobs/Sheep.cpp')
-rw-r--r--src/Mobs/Sheep.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Mobs/Sheep.cpp b/src/Mobs/Sheep.cpp
index 814c87f5d..190fac241 100644
--- a/src/Mobs/Sheep.cpp
+++ b/src/Mobs/Sheep.cpp
@@ -35,6 +35,11 @@ cSheep::cSheep(int a_Color) :
void cSheep::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
+ if (IsBaby())
+ {
+ return; // Babies don't drop items
+ }
+
if (!m_IsSheared)
{
a_Drops.push_back(cItem(E_BLOCK_WOOL, 1, static_cast<short>(m_WoolColor)));