From e18c046ee7ce8190624be264acf35a7be5ad251c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 30 Apr 2023 07:41:11 -0400 Subject: [PATCH] Parent zone required by db handler. --- src/engine/objects/Mob.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 2833afcd..9c97e43f 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -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;