Browse Source

aI delay

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

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

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

Loading…
Cancel
Save