From ff4010d65286b8413b18427f67fb0700893d15dd Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 8 Jan 2025 17:41:21 -0600 Subject: [PATCH] mob ai work --- src/engine/objects/Mob.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 8e4171ec..5ebaa63a 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -24,6 +24,7 @@ import engine.math.Quaternion; import engine.math.Vector3f; import engine.math.Vector3fImmutable; import engine.mobileAI.Threads.MobAIThread; +import engine.mobileAI.utilities.MovementUtilities; import engine.net.ByteBufferWriter; import engine.net.Dispatch; import engine.net.DispatchMessage; @@ -2160,8 +2161,7 @@ public class Mob extends AbstractIntelligenceAgent { this.patrolPoints.add(newPatrolPoint); if (i == 1) { - this.setLoc(newPatrolPoint); - WorldGrid.updateObject(this); + MovementUtilities.aiMove(this,newPatrolPoint,true); } } }