From 40b7546946edc9a75c8678dc5ee71dac763ca806 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 23 Apr 2023 10:27:04 -0400 Subject: [PATCH] More useful error information. --- src/engine/objects/Mob.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 031332fc..ebef7b47 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -228,14 +228,13 @@ public class Mob extends AbstractIntelligenceAgent { else this.contract = DbManager.ContractQueries.GET_CONTRACT(contractID); - if (this.contract != null) if (NPC.ISGuardCaptain(contract.getContractID())) { + if (this.contract != null && NPC.ISGuardCaptain(contract.getContractID())) { this.spawnTime = 60 * 15; this.isPlayerGuard = true; } int guildID = rs.getInt("mob_guildUID"); - if (this.building != null) this.guild = this.building.getGuild(); else @@ -283,7 +282,7 @@ public class Mob extends AbstractIntelligenceAgent { this.BehaviourType = MobBehaviourType.valueOf(rs.getString("fsm")); } catch (Exception e) { - Logger.error(currentID + ""); + Logger.error(e + " " + this.dbID ); } try {