From 4988f92d03c3b9c100db3474c84f1320d4217b06 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 10 Feb 2024 22:14:52 -0600 Subject: [PATCH] r8 mesh lookup changed location --- src/engine/gameManager/BuildingManager.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index b3544ded..f3733a62 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -909,8 +909,11 @@ public enum BuildingManager { building.rank = rank; // New rank means new mesh - newMeshUUID = building.getBlueprint().getMeshForRank(building.rank); + + if ((building.getBlueprint().getBuildingGroup() == BuildingGroup.TOL)&& (building.rank == 8)) + newMeshUUID = Realm.getRealmMesh(building.getCity()); + building.meshUUID = newMeshUUID; // New rank mean new max hitpoints. @@ -927,10 +930,6 @@ public enum BuildingManager { if (building.rank == -1) building.protectionState = Enum.ProtectionState.NONE; - if ((building.getBlueprint().getBuildingGroup() == BuildingGroup.TOL)&& (building.rank == 8)) { - building.meshUUID = Realm.getRealmMesh(building.getCity()); - InterestManager.forceLoad(building); - } // update object to clients building.refresh(true);