fix NPC loading issue

This commit is contained in:
2023-07-19 19:42:02 -05:00
parent e2272f49d4
commit 7f2c6a24b6
+1
View File
@@ -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);