From da378bf490b722772acfb1593dc95bc85aedc258 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 28 May 2023 13:31:39 -0500 Subject: [PATCH] patrol point index --- src/engine/objects/Mob.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 0e0450b3..723eacfa 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1978,9 +1978,12 @@ public class Mob extends AbstractIntelligenceAgent { patrolRadius = 60; Vector3fImmutable newPatrolPoint = Vector3fImmutable.getRandomPointInCircle(this.getBindLoc(), patrolRadius); + if(i == 0){ + MovementManager.translocate(this,newPatrolPoint, null); + } this.patrolPoints.add(newPatrolPoint); } - MovementManager.translocate(this,this.patrolPoints.get(0), null); + } if (this.BehaviourType == null) this.BehaviourType = this.getMobBase().fsm;