From 091431d95b8c350ac58812395366abe9ce617515 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 26 Aug 2023 09:31:10 -0400 Subject: [PATCH] Dynamic set in all constructors. --- src/engine/objects/Mob.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 83d27690..6e84609b 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -96,6 +96,8 @@ public class Mob extends AbstractIntelligenceAgent { super(); this.dbID = MBServerStatics.NO_DB_ROW_ASSIGNED_YET; this.currentID = MBServerStatics.NO_DB_ROW_ASSIGNED_YET; + this.bindLoc = Vector3fImmutable.ZERO; + this.gridObjectType = GridObjectType.DYNAMIC; } /** @@ -140,6 +142,7 @@ public class Mob extends AbstractIntelligenceAgent { this.dbID = rs.getInt(1); this.loadID = rs.getInt("mob_mobbaseID"); this.gridObjectType = GridObjectType.DYNAMIC; + this.spawnRadius = rs.getFloat("mob_spawnRadius"); this.spawnTime = rs.getInt("mob_spawnTime"); @@ -1622,7 +1625,6 @@ public class Mob extends AbstractIntelligenceAgent { if (ConfigManager.serverType.equals(ServerType.LOGINSERVER)) return; - this.gridObjectType = GridObjectType.DYNAMIC; this.mobBase = MobBase.getMobBase(loadID); this.building = BuildingManager.getBuilding(this.buildingUUID);