From 9d31ddb30d1932dc3e6d91470944f88d6f209c30 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 5 Dec 2020 23:42:33 +0100 Subject: [PATCH] Baby animals don't drop XP --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 8b585e533..7ca715254 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -759,7 +759,7 @@ local check_for_death = function(self, cause, cmi_cause) local pos = self.object:get_pos() - if mod_experience and self.hp_min and self.hp_max then + if mod_experience and self.hp_min and self.hp_max and (not self.child and self.type ~= "monster") then mcl_experience.throw_experience(pos, math.ceil( math.random(self.hp_min,self.hp_max+5) / 5) ) end end