diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 933634cce..7c64d8a3f 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -2958,7 +2958,7 @@ local function check_item_pickup(self) end end -local function damage_mob(self,reason,damage) +local function damage_mob(self,reason,damage,pos) if not self.health then return end damage = floor(damage) if damage > 0 then @@ -2989,7 +2989,7 @@ local function check_entity_cramming(self) elseif l.cram == nil and not self.child then table.insert(ncram,l) elseif l.cram then - damage_mob(l,"cramming",CRAMMING_DAMAGE) + damage_mob(l,"cramming",CRAMMING_DAMAGE,p) end end end @@ -3079,7 +3079,7 @@ local falling = function(self, pos) if add ~= 0 then damage = damage + damage * (add/100) end - damage_mob(self,"fall",damage) + damage_mob(self,"fall",damage,pos) end self.old_y = self.object:get_pos().y