remove any older model mese monsters that haven't already despawned.

This commit is contained in:
tenplus1 2023-01-11 08:29:39 +00:00
parent bceda9c75f
commit 0d17a08762
1 changed files with 9 additions and 0 deletions

View File

@ -209,6 +209,15 @@ mobs:register_mob("mobs_monster:mese_monster", {
punch_end = 189
},
after_activate = function(self, staticdata, def, dtime)
local tex = self and self.textures and self.textures[1]
if tex == "zmobs_mese_monster.png" then
self.object:remove()
end
end,
on_spawn = function(self)
local pos = self.object:get_pos()