aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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