From c8e20c905bb904ebb58c7caee817d829f8955708 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 25 Aug 2023 15:37:02 -0400 Subject: [PATCH] Add to cache before setloc --- 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 a4f2c9ca..155db128 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -680,11 +680,11 @@ public class Mob extends AbstractIntelligenceAgent { minionMobile.runAfterLoad(); minionMobile.despawned = false; + DbManager.addToCache(minionMobile); + minionMobile.setLoc(minionMobile.bindLoc); // minionMobile.despawn(); - DbManager.addToCache(minionMobile); - int slot = guardCaptain.siegeMinionMap.size() + 1; guardCaptain.siegeMinionMap.put(minionMobile, slot);