From 99ad6f37127ac07e2896e8cf82edfc63878dcaa8 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 8 Jul 2024 21:03:08 -0500 Subject: [PATCH] delete stronghold mobs form DB when finished --- src/engine/gameManager/StrongholdManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/StrongholdManager.java b/src/engine/gameManager/StrongholdManager.java index 5f397454..5a16ae3b 100644 --- a/src/engine/gameManager/StrongholdManager.java +++ b/src/engine/gameManager/StrongholdManager.java @@ -84,7 +84,7 @@ public class StrongholdManager { guard.atrHandOne = 1800; guard.defenseRating = 2200; } - if(guard!= null && guard.healthMax != 12500) { + if(guard != null && guard.healthMax != 12500) { guard.despawn(); } } @@ -133,6 +133,7 @@ public class StrongholdManager { for(Mob mob : mine.strongholdMobs) { mob.despawn(); mob.removeFromCache(); + DbManager.MobQueries.DELETE_MOB(mob); } //restore the buildings