forked from MagicBane/Server
Bindloc for non slotted npcs.
This commit is contained in:
@@ -341,7 +341,7 @@ public class NPC extends AbstractCharacter {
|
|||||||
private void initializeNPC() {
|
private void initializeNPC() {
|
||||||
|
|
||||||
int slot;
|
int slot;
|
||||||
Vector3fImmutable slotLocation = Vector3fImmutable.ZERO;
|
Vector3fImmutable bindLocation = Vector3fImmutable.ZERO;
|
||||||
if (ConfigManager.serverType.equals(ServerType.LOGINSERVER))
|
if (ConfigManager.serverType.equals(ServerType.LOGINSERVER))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -358,8 +358,8 @@ public class NPC extends AbstractCharacter {
|
|||||||
this.parentZone.zoneNPCSet.add(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 = this.building.getLoc().add(this.bindLoc);
|
this.bindLoc = this.parentZone.getLoc().add(this.bindLoc);
|
||||||
this.loc = bindLoc;
|
this.loc = bindLoc;
|
||||||
|
|
||||||
// Add this npc to the hireling list.
|
// Add this npc to the hireling list.
|
||||||
|
|||||||
Reference in New Issue
Block a user