dont load cities without ToL

This commit is contained in:
2025-01-29 06:48:40 -06:00
parent 8b456f66ef
commit de229ddde5
+3 -1
View File
@@ -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)) {