Browse Source

Parent zone set

combat-2
MagicBot 1 year ago
parent
commit
a04bdc147f
  1. 8
      src/engine/objects/Building.java

8
src/engine/objects/Building.java

@ -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.

Loading…
Cancel
Save