From 70e76d9a1a3fe2cf721c11174923e997ab9f46d4 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 28 Jan 2024 11:26:54 -0500 Subject: [PATCH] Handling of mobs not in buildings. --- src/engine/objects/Mob.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index c42db2f4..eb96da05 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -406,7 +406,6 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed { Mob mobile = new Mob(); mobile.dbID = MBServerStatics.NO_DB_ROW_ASSIGNED_YET; - //mobile.agentType = AIAgentType.MOBILE; this method is only called to make guard captains and wall archers mobile.agentType = mobType; mobile.behaviourType = MobBehaviourType.None; mobile.loadID = loadID; @@ -427,7 +426,8 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed { if (mobile.buildingUUID != 0) mobile.bindLoc = Vector3fImmutable.ZERO; else - mobile.bindLoc = spawn; + mobile.bindLoc = ZoneManager.worldToLocal(spawn, parent); + ; mobile.firstName = pirateName;