|
|
|
@ -909,8 +909,11 @@ public enum BuildingManager {
@@ -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 {
@@ -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); |
|
|
|
|