From 789b3f3ffb1deb318f042687e1dfbd646616bdd1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 8 Jan 2025 17:32:25 -0600 Subject: [PATCH] mob ai work --- src/engine/objects/Mob.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 8924eb05..b2c89218 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1443,10 +1443,10 @@ public class Mob extends AbstractIntelligenceAgent { loadInventory(); this.updateLocation(); - reloaddAgroMap(this); + reloadAgroMap(this); } - private static void reloaddAgroMap(Mob mob){ + private static void reloadAgroMap(Mob mob){ mob.playerAgroMap.clear(); for(AbstractWorldObject obj : WorldGrid.getObjectsInRangePartial(mob.loc,MBServerStatics.CHARACTER_LOAD_RANGE,1)){ if(!mob.playerAgroMap.containsKey(obj.getObjectUUID())){ @@ -1459,6 +1459,7 @@ public class Mob extends AbstractIntelligenceAgent { this.despawned = true; + this.stopPatrolTime = System.currentTimeMillis(); WorldGrid.RemoveWorldObject(this); this.charItemManager.clearInventory();