From de229ddde5533b12998191975d0c87971efc47a7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 29 Jan 2025 06:48:40 -0600 Subject: [PATCH] dont load cities without ToL --- src/engine/objects/City.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index a115a4b2..418613b9 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -811,8 +811,10 @@ public class City extends AbstractWorldObject { // Set city motto to current guild motto - if (BuildingManager.getBuilding(this.treeOfLifeID) == null) + if (BuildingManager.getBuilding(this.treeOfLifeID) == null) { Logger.info("City UID " + this.getObjectUUID() + " Failed to Load Tree of Life with ID " + this.treeOfLifeID); + this.destroy(); + } if ((ConfigManager.serverType.equals(ServerType.WORLDSERVER)) && (this.isNpc == (byte) 0)) {