diff options
-rw-r--r-- | features/events/index.js | 2 | ||||
-rw-r--r-- | features/waypoints/index.js | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/features/events/index.js b/features/events/index.js index 312a999..511295a 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -573,6 +573,8 @@ class Events extends Feature { let p1 = pr1[pr1.length - 1] let p2 = pr2[pr2.length - 1] + if (!this.guessPoint) return + let d1 = (p1[0] - this.guessPoint[0]) ** 2 + (p1[2] - this.guessPoint[2]) ** 2 let d2 = (p2[0] - this.guessPoint[0]) ** 2 + (p2[2] - this.guessPoint[2]) ** 2 diff --git a/features/waypoints/index.js b/features/waypoints/index.js index 2a064b3..043b6b8 100644 --- a/features/waypoints/index.js +++ b/features/waypoints/index.js @@ -240,6 +240,7 @@ class Waypoints extends Feature { this.registerEvent("renderWorld", () => { if (!this.mineWaypointsSetting.getValue()) return + if (this.FeatureManager.features["dataLoader"].class.area !== "Crystal Hollows") return Object.values(this.locations).forEach(item => { if (!item) return; item.forEach(loc => { |