From 0d17a087620e08f7da4672f4371813c99aed5691 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Wed, 11 Jan 2023 08:29:39 +0000 Subject: [PATCH] remove any older model mese monsters that haven't already despawned. --- mese_monster.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mese_monster.lua b/mese_monster.lua index 9e9ecb6..9e2a32b 100644 --- a/mese_monster.lua +++ b/mese_monster.lua @@ -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()