From c69e68cb27093fa1500028c0ddda02825851bcf6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 20 Aug 2023 15:37:11 -0400 Subject: [PATCH] Npc name override moved to runafterload. --- src/engine/objects/NPC.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 8618e10e..b382d77a 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -168,11 +168,6 @@ public class NPC extends AbstractCharacter { this.name = rs.getString("npc_name"); - // Name override for npc - - if (wordCount(this.name) < 2 && this.contract != null) - this.name += " the " + this.contract.getName(); - } catch (Exception e) { Logger.error("NPC: " + this.dbID + " :" + e); e.printStackTrace(); @@ -1047,6 +1042,11 @@ public class NPC extends AbstractCharacter { if (this.contract == null) return; // Early exit for npc guild owners + // Name override for this npc + + if (wordCount(this.name) < 2 && this.contract != null) + this.name += " the " + this.contract.getName(); + // Configure parent zone adding this NPC to the // zone collection