Browse Source

Parent zone required by db handler.

master
MagicBot 2 years ago
parent
commit
e18c046ee7
  1. 7
      src/engine/objects/Mob.java

7
src/engine/objects/Mob.java

@ -500,10 +500,17 @@ public class Mob extends AbstractIntelligenceAgent { @@ -500,10 +500,17 @@ public class Mob extends AbstractIntelligenceAgent {
mobWithoutID.level = (short) level;
// Parent zone is required by dbhandler. Can likely
// refactor that out and just use the id.
mobWithoutID.parentZone = parent;
mobWithoutID.parentZoneID = parent.getObjectUUID();
// NPC in a Building derives position from slot
if (mobWithoutID.building != null)
mobWithoutID.bindLoc = Vector3fImmutable.ZERO;
;
Mob mob;

Loading…
Cancel
Save