From 4d0980d13e3f0e53c2a04ef1bd5bedea96ced24c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 19 Aug 2023 16:04:46 -0400 Subject: [PATCH] Early exit for npc guild owners. --- src/engine/objects/NPC.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index f38537b0..d9659749 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -1074,6 +1074,9 @@ 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();