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{ @@ -34,12 +34,6 @@ 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);
@ -47,6 +41,12 @@ public class MobAIThread implements Runnable{ @@ -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