From 9aa053beb6b6537e7e2fac1c846ced8ec650eba1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 27 Jan 2025 10:00:53 -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 db1dfcee..9de52489 100644 --- a/src/engine/mobileAI/Threads/MobAIThread.java +++ b/src/engine/mobileAI/Threads/MobAIThread.java @@ -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{ } } } + try { + Thread.sleep(100); + } catch (InterruptedException e) { + Logger.error("AI Thread interrupted", e); + Thread.currentThread().interrupt(); + } } } }