From 322b88a1f4d1eb3088bf8462583638d91880555c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 8 May 2023 09:20:56 -0400 Subject: [PATCH] Naming logic changed to have a valid guild. --- src/engine/objects/NPC.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 760df693..63f59b92 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -246,7 +246,7 @@ public class NPC extends AbstractCharacter { if (this.building != null && this.building.getOwner() != null && - this.building.getOwner().getObjectType().equals(GameObjectType.PlayerCharacter)) + this.building.getOwner().guild != null) this.name += " the " + this.contract.getName(); }catch(Exception e){