From 8c1b23772027068455edde9bd7e98958fa2eaf34 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Jul 2023 15:39:57 -0500 Subject: [PATCH] dead pets removed form seafloor zonemobset --- src/engine/ai/MobileFSM.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index f43d8d66..9eec4af8 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -335,7 +335,10 @@ public class MobileFSM { //pet cleanup for errant pets if(mob.BehaviourType.ordinal() == Enum.MobBehaviourType.Pet1.ordinal() && mob.getOwner() == null && mob.isSiege() == false){ mob.despawn(); + DbManager.removeFromCache(mob); WorldGrid.removeObject(mob); + ZoneManager.getSeaFloor().zoneMobSet.remove(mob); + return; } if (mob.despawned && mob.getMobBase().getLoadID() == 13171) { //trebuchet spawn handler