From cb1dccd6301972244860b9d34f04efde32f60d18 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 8 Jul 2024 21:53:03 -0500 Subject: [PATCH] stronghold guardian fix --- src/engine/gameManager/StrongholdManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/gameManager/StrongholdManager.java b/src/engine/gameManager/StrongholdManager.java index a84fef3d..832595df 100644 --- a/src/engine/gameManager/StrongholdManager.java +++ b/src/engine/gameManager/StrongholdManager.java @@ -117,6 +117,7 @@ public class StrongholdManager { tower.setProtectionState(Enum.ProtectionState.PROTECTED); tower.getBounds().setRegions(tower); InterestManager.setObjectDirty(tower); + WorldGrid.updateObject(tower); } public static void EndStronghold(Mine mine){ @@ -141,6 +142,8 @@ public class StrongholdManager { if(mine.oldBuildings.containsKey(building.getObjectUUID())) { building.setMeshUUID(mine.oldBuildings.get(building.getObjectUUID())); building.setMeshScale(new Vector3f(1, 1, 1)); + InterestManager.setObjectDirty(building); + WorldGrid.updateObject(building); } } @@ -151,6 +154,7 @@ public class StrongholdManager { tower.setProtectionState(Enum.ProtectionState.NPC); tower.getBounds().setRegions(tower); InterestManager.setObjectDirty(tower); + WorldGrid.updateObject(tower); } public static int getStrongholdMeshID(Zone parent){