aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-11 18:20:15 +0800
committerGitHub <noreply@github.com>2022-09-11 18:20:15 +0800
commit0cb014b4931376fe3d7e803942d1b8f53f6fbe85 (patch)
treed0475d2d0857e213dcadf5cf2b20cfcba6e93af5
parent63eed7a20a769f1188eda92ed26b44c293b038cc (diff)
downloadSoopyV2-0cb014b4931376fe3d7e803942d1b8f53f6fbe85.tar.gz
SoopyV2-0cb014b4931376fe3d7e803942d1b8f53f6fbe85.tar.bz2
SoopyV2-0cb014b4931376fe3d7e803942d1b8f53f6fbe85.zip
Make closest warp calculations use the updated guess location
-rw-r--r--features/events/index.js2
1 files changed, 1 insertions, 1 deletions
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