Browse Source

Add to cache before setloc

mobile-class-refactor
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 { @@ -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);

Loading…
Cancel
Save