From a82d64de3a9c454ba2ef94e0425cde66e5b16bc4 Mon Sep 17 00:00:00 2001 From: Arkadiusz Sygulski Date: Fri, 16 Jan 2026 23:31:36 +0100 Subject: [PATCH] Carrot --- src/core/pathfinding/spatial/SpatialQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/pathfinding/spatial/SpatialQuery.ts b/src/core/pathfinding/spatial/SpatialQuery.ts index defd47aaf..9128dd0b4 100644 --- a/src/core/pathfinding/spatial/SpatialQuery.ts +++ b/src/core/pathfinding/spatial/SpatialQuery.ts @@ -119,7 +119,7 @@ export class SpatialQuery { const MAX_WAYPOINT_DIST = 200; const PADDING = 10; - if (path.length < MIN_WAYPOINT_DIST) { + if (path.length <= MIN_WAYPOINT_DIST) { return path[0]; }