From bb4c1d48a46a5c8c57d464bb510eb627eaf57ab9 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 24 Apr 2024 14:59:38 -0500 Subject: [PATCH] mob desync issue --- 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 a635b525..9ecfbb87 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -871,7 +871,8 @@ public class Mob extends AbstractIntelligenceAgent { Vector3fImmutable newLoc = this.getMovementLoc(); - if (newLoc.equals(this.getEndLoc())) { + //if (newLoc.equals(this.getEndLoc())) { + if(newLoc.distanceSquared(this.getEndLoc()) < 4){ this.stopMovement(newLoc); this.region = AbstractWorldObject.GetRegionByWorldObject(this); return;