forked from MagicBane/Server
fix NPC loading issue
This commit is contained in:
@@ -577,6 +577,7 @@ public class NPC extends AbstractCharacter {
|
|||||||
if (parent != null) {
|
if (parent != null) {
|
||||||
npcWithoutID.setRelPos(parent, spawn.x - parent.absX, spawn.y - parent.absY, spawn.z - parent.absZ);
|
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;
|
NPC npc;
|
||||||
try {
|
try {
|
||||||
npc = DbManager.NPCQueries.ADD_NPC(npcWithoutID, isMob);
|
npc = DbManager.NPCQueries.ADD_NPC(npcWithoutID, isMob);
|
||||||
|
|||||||
Reference in New Issue
Block a user