forked from MagicBane/Server
Bugfix for contract-less npc owners.
This commit is contained in:
@@ -274,7 +274,10 @@ public class NPC extends AbstractCharacter {
|
|||||||
this.buildingLevel = (rs.getInt("npc_buildingLevel"));
|
this.buildingLevel = (rs.getInt("npc_buildingLevel"));
|
||||||
this.setParentZone(ZoneManager.getZoneByUUID(this.parentZoneID));
|
this.setParentZone(ZoneManager.getZoneByUUID(this.parentZoneID));
|
||||||
|
|
||||||
this.nameOverride = rs.getString("npc_name") + " the " + this.getContract().getName();
|
if (this.contract != null)
|
||||||
|
this.nameOverride = rs.getString("npc_name") + " the " + this.getContract().getName();
|
||||||
|
else
|
||||||
|
this.nameOverride = rs.getString("npc_name");
|
||||||
|
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
Logger.error(e);
|
Logger.error(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user