Browse Source

fix NPC loading issue

master
FatBoy-DOTC 1 year ago
parent
commit
7f2c6a24b6
  1. 1
      src/engine/objects/NPC.java

1
src/engine/objects/NPC.java

@ -577,6 +577,7 @@ public class NPC extends AbstractCharacter { @@ -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);

Loading…
Cancel
Save