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");
|
this.name = rs.getString("npc_name");
|
||||||
|
|
||||||
// Name override for player owned npcs
|
// Name override for npc
|
||||||
|
// with an owner.
|
||||||
|
|
||||||
if (this.building != null &&
|
if (this.guild != null &&
|
||||||
this.building.getOwner() != null &&
|
!this.guild.isEmptyGuild())
|
||||||
this.building.getOwner().guild != null)
|
|
||||||
this.name += " the " + this.contract.getName();
|
this.name += " the " + this.contract.getName();
|
||||||
|
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
|
|||||||
Reference in New Issue
Block a user