diff options
author | Bond-009 <bond.009@outlook.com> | 2017-10-21 18:55:46 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-10-21 18:55:46 +0200 |
commit | e585595ae64cc5523547c95cb8bebeb8e60f141b (patch) | |
tree | 846fb44a8699cf7a739e18c69490e46ab788b382 /src/Mobs/Horse.cpp | |
parent | Fix minecart deceleration (#4059) (diff) | |
download | cuberite-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/Horse.cpp')
-rw-r--r-- | src/Mobs/Horse.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Mobs/Horse.cpp b/src/Mobs/Horse.cpp index c55acf572..07d3f7481 100644 --- a/src/Mobs/Horse.cpp +++ b/src/Mobs/Horse.cpp @@ -169,6 +169,11 @@ void cHorse::OnRightClicked(cPlayer & a_Player) void cHorse::GetDrops(cItems & a_Drops, cEntity * a_Killer) { + if (IsBaby()) + { + return; // Babies don't drop items + } + unsigned int LootingLevel = 0; if (a_Killer != nullptr) { |