From 0cb014b4931376fe3d7e803942d1b8f53f6fbe85 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 11 Sep 2022 18:20:15 +0800 Subject: Make closest warp calculations use the updated guess location --- features/events/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features/events/index.js') diff --git a/features/events/index.js b/features/events/index.js index 312a999..d208c4d 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -346,7 +346,7 @@ class Events extends Feature { this.hasWarps.forEach(w => { if (!warpData[w]) return - let d = calculateDistance(warpData[w], this.guessPoint) + let d = calculateDistance(warpData[w], this.guessPoint2) if (d < minDist) { warp = "warp " + w minDist = d -- cgit