Browse Source

Add to cache before setloc

combat-2
MagicBot 1 year ago
parent
commit
c8e20c905b
  1. 4
      src/engine/objects/Mob.java

4
src/engine/objects/Mob.java

@ -680,11 +680,11 @@ public class Mob extends AbstractIntelligenceAgent {
minionMobile.runAfterLoad(); minionMobile.runAfterLoad();
minionMobile.despawned = false; minionMobile.despawned = false;
DbManager.addToCache(minionMobile);
minionMobile.setLoc(minionMobile.bindLoc); minionMobile.setLoc(minionMobile.bindLoc);
// minionMobile.despawn(); // minionMobile.despawn();
DbManager.addToCache(minionMobile);
int slot = guardCaptain.siegeMinionMap.size() + 1; int slot = guardCaptain.siegeMinionMap.size() + 1;
guardCaptain.siegeMinionMap.put(minionMobile, slot); guardCaptain.siegeMinionMap.put(minionMobile, slot);

Loading…
Cancel
Save