Browse Source

r8 mesh lookup changed location

combat-2
FatBoy-DOTC 9 months ago
parent
commit
4988f92d03
  1. 9
      src/engine/gameManager/BuildingManager.java

9
src/engine/gameManager/BuildingManager.java

@ -909,8 +909,11 @@ public enum BuildingManager {
building.rank = rank; building.rank = rank;
// New rank means new mesh // New rank means new mesh
newMeshUUID = building.getBlueprint().getMeshForRank(building.rank); newMeshUUID = building.getBlueprint().getMeshForRank(building.rank);
if ((building.getBlueprint().getBuildingGroup() == BuildingGroup.TOL)&& (building.rank == 8))
newMeshUUID = Realm.getRealmMesh(building.getCity());
building.meshUUID = newMeshUUID; building.meshUUID = newMeshUUID;
// New rank mean new max hitpoints. // New rank mean new max hitpoints.
@ -927,10 +930,6 @@ public enum BuildingManager {
if (building.rank == -1) if (building.rank == -1)
building.protectionState = Enum.ProtectionState.NONE; 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 // update object to clients
building.refresh(true); building.refresh(true);

Loading…
Cancel
Save