From 7f2c6a24b67f3d48ba6cf5db29f1030863521991 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 19 Jul 2023 19:42:02 -0500 Subject: [PATCH] fix NPC loading issue --- src/engine/objects/NPC.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 95a189ce..fe7a7784 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -577,6 +577,7 @@ public class NPC extends AbstractCharacter { if (parent != null) { npcWithoutID.setRelPos(parent, spawn.x - parent.absX, spawn.y - parent.absY, spawn.z - parent.absZ); } + npcWithoutID.setLoc(new Vector3fImmutable(npcWithoutID.statLat,npcWithoutID.statAlt,npcWithoutID.statLon)); NPC npc; try { npc = DbManager.NPCQueries.ADD_NPC(npcWithoutID, isMob);