forked from MagicBane/Server
Parent zone set
This commit is contained in:
@@ -981,6 +981,11 @@ public class Building extends AbstractWorldObject {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
// Set Parent Zone
|
||||||
|
|
||||||
|
this.parentZone = ZoneManager.getZoneByUUID(this.parentZoneUUID);
|
||||||
|
this.parentZone.zoneBuildingSet.add(this);
|
||||||
|
|
||||||
// Lookup building blueprint
|
// Lookup building blueprint
|
||||||
|
|
||||||
Blueprint blueprint;
|
Blueprint blueprint;
|
||||||
@@ -1043,9 +1048,6 @@ public class Building extends AbstractWorldObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.parentZone = ZoneManager.getZoneByUUID(this.parentZoneUUID);
|
|
||||||
this.parentZone.zoneBuildingSet.add(this);
|
|
||||||
|
|
||||||
|
|
||||||
// Submit upgrade job if building is currently set to rank.
|
// Submit upgrade job if building is currently set to rank.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user