Browse Source

aI delay

lakebane
FatBoy-DOTC 3 days ago
parent
commit
9aa053beb6
  1. 12
      src/engine/mobileAI/Threads/MobAIThread.java

12
src/engine/mobileAI/Threads/MobAIThread.java

@ -34,12 +34,6 @@ public class MobAIThread implements Runnable{
try { try {
if (mob != null) { if (mob != null) {
MobAI.DetermineAction(mob); MobAI.DetermineAction(mob);
try {
Thread.sleep(100);
} catch (InterruptedException e) {
Logger.error("AI Thread interrupted", e);
Thread.currentThread().interrupt();
}
} }
} catch (Exception e) { } catch (Exception e) {
Logger.error("Error processing Mob [Name: {}, UUID: {}]", mob.getName(), mob.getObjectUUID(), e); Logger.error("Error processing Mob [Name: {}, UUID: {}]", mob.getName(), mob.getObjectUUID(), e);
@ -47,6 +41,12 @@ public class MobAIThread implements Runnable{
} }
} }
} }
try {
Thread.sleep(100);
} catch (InterruptedException e) {
Logger.error("AI Thread interrupted", e);
Thread.currentThread().interrupt();
}
} }
} }
} }

Loading…
Cancel
Save