fix: crash when a petz dies in 5.6-dev

master
root 2022-06-14 10:26:22 +02:00
parent 7cf508106b
commit a30028f1f8
1 changed files with 0 additions and 3 deletions

View File

@ -4,9 +4,6 @@
petz.on_die = function(self)
self.dead = kitz.remember(self, "dead", true) --a variable, useful to avoid functions
if self.object:get_hp() > 0 then --you can call this function directally
--self.object:set_hp(0)
end
local pos = self.object:get_pos()
--Specific of each mob-->
if self.is_mountable then