From 7eb084efaa1880ce22bac75abc84cf4809592df3 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 27 Jan 2025 09:46:48 -0600 Subject: [PATCH] aI delay --- src/engine/mobileAI/Threads/MobAIThread.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/engine/mobileAI/Threads/MobAIThread.java b/src/engine/mobileAI/Threads/MobAIThread.java index 8a7d8a8a..db1dfcee 100644 --- a/src/engine/mobileAI/Threads/MobAIThread.java +++ b/src/engine/mobileAI/Threads/MobAIThread.java @@ -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{ } } } - try { - Thread.sleep(100); - } catch (InterruptedException e) { - Logger.error("AI Thread interrupted", e); - Thread.currentThread().interrupt(); - } } } public static void startAIThread() {