bug fix
This commit is contained in:
@@ -876,10 +876,14 @@ public class NPC extends AbstractCharacter {
|
|||||||
// zone collection
|
// zone collection
|
||||||
|
|
||||||
this.parentZone = ZoneManager.getZoneByUUID(this.parentZoneUUID);
|
this.parentZone = ZoneManager.getZoneByUUID(this.parentZoneUUID);
|
||||||
if(this.parentZone != null) {
|
if(this.parentZone == null) {
|
||||||
this.parentZone.zoneNPCSet.remove(this);
|
Logger.error("PARENT ZONE NOT IDENTIFIED FOR NPC : " + this.getObjectUUID());
|
||||||
this.parentZone.zoneNPCSet.add(this);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.parentZone.zoneNPCSet.remove(this);
|
||||||
|
this.parentZone.zoneNPCSet.add(this);
|
||||||
|
|
||||||
// Setup location for this NPC
|
// Setup location for this NPC
|
||||||
|
|
||||||
this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon);
|
this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon);
|
||||||
|
|||||||
Reference in New Issue
Block a user