Parent zone required by db handler.

This commit is contained in:
2023-04-30 07:41:11 -04:00
parent 4365fafb77
commit e18c046ee7
+7
View File
@@ -500,10 +500,17 @@ public class Mob extends AbstractIntelligenceAgent {
mobWithoutID.level = (short) level; 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 // NPC in a Building derives position from slot
if (mobWithoutID.building != null) if (mobWithoutID.building != null)
mobWithoutID.bindLoc = Vector3fImmutable.ZERO; mobWithoutID.bindLoc = Vector3fImmutable.ZERO;
;
Mob mob; Mob mob;