aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-11 21:12:47 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-11 21:12:47 +0800
commit0dd404208fc066dcb3f826c7c2f558a9bcc27725 (patch)
tree66ae61dd336d41eaa7fd5475c34b5c95e0110ebd
parent63eed7a20a769f1188eda92ed26b44c293b038cc (diff)
downloadSoopyV2-0dd404208fc066dcb3f826c7c2f558a9bcc27725.tar.gz
SoopyV2-0dd404208fc066dcb3f826c7c2f558a9bcc27725.tar.bz2
SoopyV2-0dd404208fc066dcb3f826c7c2f558a9bcc27725.zip
+ fix ch waypoints showing when not in ch
-rw-r--r--features/events/index.js2
-rw-r--r--features/waypoints/index.js1
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 => {