From d6239de6fd17bc33cc0c8d25b4b5175787287b08 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 8 Jul 2024 21:09:21 -0500 Subject: [PATCH] delete stronghold mobs form DB when finished --- src/engine/objects/Mob.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 8e2181b5..0ab3915c 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -290,6 +290,12 @@ public class Mob extends AbstractIntelligenceAgent { Logger.error("Mobile:" + this.dbID + ": " + e); } + if(this.firstName.toLowerCase().equals("guardian commander") || this.firstName.toLowerCase().equals("elite guardian")){ + this.despawn(); + this.removeFromCache(); + DbManager.MobQueries.DELETE_MOB(this); + } + } public static void serializeMobForClientMsgOtherPlayer(Mob mob, ByteBufferWriter writer) throws SerializationException {