Early exit for npc guild owners.

This commit is contained in:
2023-08-19 16:04:46 -04:00
parent 9239bc1400
commit 4d0980d13e
+3
View File
@@ -1074,6 +1074,9 @@ public class NPC extends AbstractCharacter {
if (this.building != null) if (this.building != null)
NPCManager.slotCharacterInBuilding(this); NPCManager.slotCharacterInBuilding(this);
if (this.contract == null)
return; // Early exit for npc guild owners
if (this.contract != null) { if (this.contract != null) {
this.symbol = this.contract.getIconID(); this.symbol = this.contract.getIconID();
this.modTypeTable = this.contract.getNPCModTypeTable(); this.modTypeTable = this.contract.getNPCModTypeTable();