Browse Source

mob ai work

lakebane-mobai2
FatBoy-DOTC 1 week ago
parent
commit
728db63024
  1. 4
      src/engine/mobileAI/Threads/MobRespawnThread.java

4
src/engine/mobileAI/Threads/MobRespawnThread.java

@ -8,6 +8,8 @@
package engine.mobileAI.Threads; package engine.mobileAI.Threads;
import engine.InterestManagement.InterestManager;
import engine.InterestManagement.WorldGrid;
import engine.gameManager.ZoneManager; import engine.gameManager.ZoneManager;
import engine.objects.Mob; import engine.objects.Mob;
import engine.objects.Zone; import engine.objects.Zone;
@ -49,6 +51,8 @@ public class MobRespawnThread implements Runnable {
respawner.respawn(); respawner.respawn();
zone.respawnQue.remove(respawner); zone.respawnQue.remove(respawner);
zone.lastRespawn = System.currentTimeMillis(); zone.lastRespawn = System.currentTimeMillis();
WorldGrid.updateObject(respawner);
InterestManager.setObjectDirty(respawner);
} }
} }
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save