Browse Source

Set bindloc to slot location.

master
MagicBot 2 years ago
parent
commit
cd9d7f7652
  1. 2
      src/engine/objects/NPC.java

2
src/engine/objects/NPC.java

@ -360,7 +360,7 @@ public class NPC extends AbstractCharacter { @@ -360,7 +360,7 @@ public class NPC extends AbstractCharacter {
// Setup location for this NPC
this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon);
this.bindLoc = this.parentZone.getLoc().add(this.bindLoc);
this.loc = bindLoc;
this.loc = new Vector3fImmutable(bindLoc);
// Handle NPCs within buildings

Loading…
Cancel
Save