From 2ffd354f380f33ba5cfa397cee5b01a69f4afb86 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 26 Feb 2024 15:52:49 -0500 Subject: [PATCH] Logging null building --- src/engine/objects/Mob.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 8fb4cffc..3163504d 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1558,14 +1558,14 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed { this.agentType = AIAgentType.GUARDCAPTAIN; this.spawnDelay = 600; if (this.building == null) - Logger.error("Captain : " + this.getObjectUUID() + " : " + this.buildingUUID); + Logger.error("Captain : " + this.getObjectUUID() + " missing building " + this.buildingUUID); this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc()); break; case GuardWallArcher: this.agentType = AIAgentType.GUARDWALLARCHER; this.spawnDelay = 450; if (this.building == null) - Logger.error("Wall Archer : " + this.getObjectUUID() + " : " + this.buildingUUID); + Logger.error("Wall Archer : " + this.getObjectUUID() + " missing building " + this.buildingUUID); this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc()); break; }