Naming logic changed to have a valid guild.

This commit is contained in:
2023-05-08 09:29:11 -04:00
parent 322b88a1f4
commit 8068082768
+4 -4
View File
@@ -242,11 +242,11 @@ public class NPC extends AbstractCharacter {
this.name = rs.getString("npc_name");
// Name override for player owned npcs
// Name override for npc
// with an owner.
if (this.building != null &&
this.building.getOwner() != null &&
this.building.getOwner().guild != null)
if (this.guild != null &&
!this.guild.isEmptyGuild())
this.name += " the " + this.contract.getName();
}catch(Exception e){