forked from MagicBane/Server
r8 mesh lookup changed location
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user