aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-27 16:18:20 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-27 16:18:20 +0800
commit7fd08de2c3b96d0a171c85513f62a292f232bfe1 (patch)
tree2386d00499b217095a83b596a90a653e1dbf9818 /src
parent22bbcec4bceba8e8b314d18bf9b54bfc2c591ba3 (diff)
downloadSoopyV2-7fd08de2c3b96d0a171c85513f62a292f232bfe1.tar.gz
SoopyV2-7fd08de2c3b96d0a171c85513f62a292f232bfe1.tar.bz2
SoopyV2-7fd08de2c3b96d0a171c85513f62a292f232bfe1.zip
fix guess thing v2
Diffstat (limited to 'src')
-rw-r--r--src/features/events/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/features/events/index.js b/src/features/events/index.js
index ab26ce0..8495001 100644
--- a/src/features/events/index.js
+++ b/src/features/events/index.js
@@ -338,13 +338,13 @@ class Events extends Feature {
}
getClosestWarp() {
- if (!this.guessPoint) return undefined
+ if (!this.guessPoint2) return undefined
let warp = undefined
- let minDist = calculateDistance([Player.getX(), Player.getY(), Player.getZ()], this.guessPoint) - 50
+ let minDist = calculateDistance([Player.getX(), Player.getY(), Player.getZ()], this.guessPoint2) - 50
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