|
|
@ -892,7 +892,6 @@ public class Building extends AbstractWorldObject { |
|
|
|
|
|
|
|
|
|
|
|
this.parentZone = ZoneManager.getZoneByUUID(this.parentZoneUUID); |
|
|
|
this.parentZone = ZoneManager.getZoneByUUID(this.parentZoneUUID); |
|
|
|
this.parentZone.zoneBuildingSet.add(this); |
|
|
|
this.parentZone.zoneBuildingSet.add(this); |
|
|
|
this.updateNavMesh(); // update the navmesh of the parent zone
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Lookup building blueprint
|
|
|
|
// Lookup building blueprint
|
|
|
|
|
|
|
|
|
|
|
@ -1003,6 +1002,8 @@ public class Building extends AbstractWorldObject { |
|
|
|
|
|
|
|
|
|
|
|
if (this.upgradeDateTime != null) |
|
|
|
if (this.upgradeDateTime != null) |
|
|
|
BuildingManager.submitUpgradeJob(this); |
|
|
|
BuildingManager.submitUpgradeJob(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.updateNavMesh(); // update the navmesh of the parent zone
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public synchronized boolean setOwner(AbstractCharacter newOwner) { |
|
|
|
public synchronized boolean setOwner(AbstractCharacter newOwner) { |
|
|
@ -1537,6 +1538,6 @@ public class Building extends AbstractWorldObject { |
|
|
|
|
|
|
|
|
|
|
|
MeshBounds meshBounds = Bounds.meshBoundsCache.get(this.getMeshUUID()); |
|
|
|
MeshBounds meshBounds = Bounds.meshBoundsCache.get(this.getMeshUUID()); |
|
|
|
if(meshBounds != null) |
|
|
|
if(meshBounds != null) |
|
|
|
this.parentZone.navMesh.subtract(meshBounds.getArea()); |
|
|
|
this.parentZone.navMesh.subtract(meshBounds.getArea(this.loc.x,this.loc.z)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|