From 6605e4dd61a31365f9d41169ff2fe40961422568 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 8 Jul 2024 21:17:38 -0500 Subject: [PATCH] update regions when changing mesh --- src/engine/gameManager/StrongholdManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/gameManager/StrongholdManager.java b/src/engine/gameManager/StrongholdManager.java index 5a16ae3b..baf89f81 100644 --- a/src/engine/gameManager/StrongholdManager.java +++ b/src/engine/gameManager/StrongholdManager.java @@ -118,6 +118,8 @@ public class StrongholdManager { mine.setActive(true); tower.setProtectionState(Enum.ProtectionState.PROTECTED); + tower.getBounds().setRegions(tower); + } public static void EndStronghold(Mine mine){ @@ -150,6 +152,7 @@ public class StrongholdManager { mine.setActive(false); tower.setProtectionState(Enum.ProtectionState.NPC); + tower.getBounds().setRegions(tower); } public static int getStrongholdMeshID(Zone parent){