diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 7047081f..8924eb05 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1443,6 +1443,16 @@ public class Mob extends AbstractIntelligenceAgent { loadInventory(); this.updateLocation(); + reloaddAgroMap(this); + } + + private static void reloaddAgroMap(Mob mob){ + mob.playerAgroMap.clear(); + for(AbstractWorldObject obj : WorldGrid.getObjectsInRangePartial(mob.loc,MBServerStatics.CHARACTER_LOAD_RANGE,1)){ + if(!mob.playerAgroMap.containsKey(obj.getObjectUUID())){ + mob.playerAgroMap.put(obj.getObjectUUID(),false); + } + } } public void despawn() {