1
0
Fork 0

Merge branch 'master' into xp

This commit is contained in:
Lizzy Fleckenstein 2021-11-03 20:14:08 +01:00
commit 8f9f5cc936
Signed by untrusted user: LizzyFleckenstein03
GPG Key ID: 06927A5199D6C9B2
1 changed files with 4 additions and 1 deletions

View File

@ -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_xp(self.object:get_pos(), math_random(self.xp_min, self.xp_max)) mcl_experience.throw_xp(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