mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 16:41:06 +01:00
Add missing call for on_die function
This commit is contained in:
parent
1518eb81cb
commit
db696d0e2b
1 changed files with 5 additions and 2 deletions
|
@ -123,6 +123,9 @@ mobs.death_logic = function(self, dtime)
|
||||||
item_drop(self,false,1)
|
item_drop(self,false,1)
|
||||||
mobs.death_effect(self)
|
mobs.death_effect(self)
|
||||||
mcl_experience.throw_experience(self.object:get_pos(), math_random(self.xp_min, self.xp_max))
|
mcl_experience.throw_experience(self.object:get_pos(), math_random(self.xp_min, self.xp_max))
|
||||||
|
if self.on_die then
|
||||||
|
self.on_die(self, self.object:get_pos())
|
||||||
|
end
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue