From 0d7e69f772e7d334e5ac8eec90c46e879a1b0185 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 19 Aug 2023 16:07:11 -0400 Subject: [PATCH] Early exit for npc guild owners. --- src/engine/objects/NPC.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index d9659749..20fce385 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -1056,6 +1056,9 @@ public class NPC extends AbstractCharacter { if (ConfigManager.serverType.equals(ServerType.LOGINSERVER)) return; + if (this.contract == null) + return; // Early exit for npc guild owners + // Configure parent zone adding this NPC to the // zone collection @@ -1074,9 +1077,6 @@ public class NPC extends AbstractCharacter { if (this.building != null) NPCManager.slotCharacterInBuilding(this); - if (this.contract == null) - return; // Early exit for npc guild owners - if (this.contract != null) { this.symbol = this.contract.getIconID(); this.modTypeTable = this.contract.getNPCModTypeTable();