From a04bdc147fce326a28fdc3322ca3f14e321f8f9e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 18 Oct 2023 11:03:08 -0400 Subject: [PATCH] Parent zone set --- src/engine/objects/Building.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Building.java b/src/engine/objects/Building.java index 408121e5..e915bced 100644 --- a/src/engine/objects/Building.java +++ b/src/engine/objects/Building.java @@ -981,6 +981,11 @@ public class Building extends AbstractWorldObject { try { + // Set Parent Zone + + this.parentZone = ZoneManager.getZoneByUUID(this.parentZoneUUID); + this.parentZone.zoneBuildingSet.add(this); + // Lookup building 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.