forked from MagicBane/Server
Naming logic changed to have a valid guild.
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user