Browse Source

bug fix

lakebane-jobs
FatBoy-DOTC 4 days ago
parent
commit
b0dd7e9b59
  1. 7
      src/engine/objects/NPC.java

7
src/engine/objects/NPC.java

@ -876,9 +876,10 @@ public class NPC extends AbstractCharacter {
// zone collection // zone collection
this.parentZone = ZoneManager.getZoneByUUID(this.parentZoneUUID); this.parentZone = ZoneManager.getZoneByUUID(this.parentZoneUUID);
this.parentZone.zoneNPCSet.remove(this); if(this.parentZone != null) {
this.parentZone.zoneNPCSet.add(this); 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);

Loading…
Cancel
Save