From 441b2fe42ae4a6fe25e2596a4b9634058d2a06d5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 26 Feb 2024 15:49:45 -0500 Subject: [PATCH] Logging null building --- src/engine/objects/Mob.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 2490a335..8fb4cffc 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1557,11 +1557,15 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed { case GuardCaptain: this.agentType = AIAgentType.GUARDCAPTAIN; this.spawnDelay = 600; + if (this.building == null) + Logger.error("Captain : " + this.getObjectUUID() + " : " + 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); this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc()); break; }