From ef74d1ae8cdbeaba0de98d32356978672507c598 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 16 Apr 2023 13:07:28 -0500 Subject: [PATCH] init. patrol points list --- src/engine/objects/Mob.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index c7d45a4f..0466edbc 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1979,6 +1979,7 @@ public class Mob extends AbstractIntelligenceAgent { this.setBounds(mobBounds); //assign 5 random patrol points for regular mobs if(!this.isGuard() && !this.isPlayerGuard() && !this.isPet() && !this.isNecroPet() && !this.isSummonedPet() && !this.isCharmedPet()){ + this.patrolPoints = new ArrayList<>(); for(int i = 0; i < 5; ++i){ float patrolRadius = this.getSpawnRadius(); @@ -1989,7 +1990,7 @@ public class Mob extends AbstractIntelligenceAgent { patrolRadius = 60; Vector3fImmutable newPatrolPoint = Vector3fImmutable.getRandomPointInCircle(this.getBindLoc(), patrolRadius); - patrolPoints.add(newPatrolPoint); + this.patrolPoints.add(newPatrolPoint); } } } catch (Exception e) {