mirror of
https://codeberg.org/tenplus1/mobs_monster.git
synced 2024-12-22 08:50:27 +01:00
remove any older model mese monsters that haven't already despawned.
This commit is contained in:
parent
bceda9c75f
commit
0d17a08762
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user