diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-22 14:24:10 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-22 14:24:10 +0800 |
commit | 645f68eedcd17edb7209fa12fdcff099460cba93 (patch) | |
tree | 7b445b7dc8ed815d6936ff5d6f93c6fd609703b1 | |
parent | c25141fb3cf06f5e86944eda239a3a29c9ca3dc3 (diff) | |
download | SoopyV2-645f68eedcd17edb7209fa12fdcff099460cba93.tar.gz SoopyV2-645f68eedcd17edb7209fa12fdcff099460cba93.tar.bz2 SoopyV2-645f68eedcd17edb7209fa12fdcff099460cba93.zip |
fix 2
-rw-r--r-- | src/features/events/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/features/events/index.js b/src/features/events/index.js index ea83312..aea1fea 100644 --- a/src/features/events/index.js +++ b/src/features/events/index.js @@ -197,7 +197,7 @@ class Events extends Feature { } if (this.limitPMembRecieve.getValue()) { - if (!this.FeatureManager.features["dataLoader"].class.partyMembers.has(user)) return + if (!this.FeatureManager.features["dataLoader"] || !this.FeatureManager.features["dataLoader"].class.partyMembers.has(user)) return } this.slayerLocationDataH[user] = [loc, Date.now()] if (this.otherInquisPing.getValue()) { @@ -284,7 +284,7 @@ class Events extends Feature { } }) - let showingWaypointsNew = (this.lastWorldChange + 5000 < Date.now() ? hasDianaShovle && this.FeatureManager.features["dataLoader"].class.area === "Hub" && (this.loadFromParticles.getValue() || this.showBurrialGuess.getValue()) : this.showingWaypoints || (hasDianaShovle && this.FeatureManager.features["dataLoader"].class.area === "Hub" && (this.loadFromParticles.getValue() || this.showBurrialGuess.getValue()))) + let showingWaypointsNew = (this.lastWorldChange + 5000 < Date.now() ? hasDianaShovle && this.FeatureManager.features["dataLoader"] && this.FeatureManager.features["dataLoader"].class.area === "Hub" && (this.loadFromParticles.getValue() || this.showBurrialGuess.getValue()) : this.showingWaypoints || (hasDianaShovle && this.FeatureManager.features["dataLoader"].class.area === "Hub" && (this.loadFromParticles.getValue() || this.showBurrialGuess.getValue()))) this.showingWaypoints = showingWaypointsNew @@ -313,7 +313,7 @@ class Events extends Feature { self = true } }) - if (self) { + if (self && this.FeatureManager.features["dataLoader"]) { let pmemb = [] this.FeatureManager.features["dataLoader"].class.partyMembers.forEach(a => pmemb.push(a)) socketConnection.sendInquisData({ loc: [Math.round(Player.getX()), Math.round(Player.getY()), Math.round(Player.getZ())], pmemb, limitPMemb: pmemb.length > 1 && this.limitPMemb.getValue() }); @@ -610,7 +610,7 @@ class Events extends Feature { this.guessPoint = [this.lastSoundPoint[0] + changes[0] * distance, this.lastSoundPoint[1] + changes[1] * distance, this.lastSoundPoint[2] + changes[2] * distance] } } - if (this.shinyBlockOverlayEnabled.getValue() && this.FeatureManager.features["dataLoader"].class.areaFine === "The End") { + if (this.shinyBlockOverlayEnabled.getValue() && this.FeatureManager.features["dataLoader"] && this.FeatureManager.features["dataLoader"].class.areaFine === "The End") { if (particle.toString().startsWith("EntitySpellParticleFX,")) { if (particle.getUnderlyingEntity().func_70534_d() === particle.getUnderlyingEntity().func_70535_g()) { let arr = [particle.getX(), particle.getY(), particle.getZ()] @@ -620,7 +620,7 @@ class Events extends Feature { } } } - if (this.showGlowingMushrooms.getValue() && this.FeatureManager.features["dataLoader"].class.areaFine === "Glowing Mushroom Cave") { + if (this.showGlowingMushrooms.getValue() && this.FeatureManager.features["dataLoader"] && this.FeatureManager.features["dataLoader"].class.areaFine === "Glowing Mushroom Cave") { if (particle.toString().startsWith("EntitySpellParticleFX,")) { // console.log([particle.getX(), particle.getY(), particle.getZ()].map(a => a % 1)) if (Math.abs(particle.getX() % 1) === 0.5 && Math.abs(particle.getZ() % 1) === 0.5) { |