diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-10-06 17:32:46 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-10-06 17:32:46 +0800 |
commit | ac4bec7b9a9feb8372ede945f9869c197789c660 (patch) | |
tree | f9e51136a48c1f13bd41a5e3b515e935a5e54ea8 /src/features/events | |
parent | 26996a65c93de407e4a12403f967b722a6dbf710 (diff) | |
download | SoopyV2-ac4bec7b9a9feb8372ede945f9869c197789c660.tar.gz SoopyV2-ac4bec7b9a9feb8372ede945f9869c197789c660.tar.bz2 SoopyV2-ac4bec7b9a9feb8372ede945f9869c197789c660.zip |
Location hud element
Diffstat (limited to 'src/features/events')
-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 8495001..73b20a5 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"] || !this.FeatureManager.features["dataLoader"].class.partyMembers.has(user)) return + if (!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"] && 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"].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 && this.FeatureManager.features["dataLoader"]) { + if (self) { 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"] && this.FeatureManager.features["dataLoader"].class.areaFine === "The End") { + if (this.shinyBlockOverlayEnabled.getValue() && 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"] && this.FeatureManager.features["dataLoader"].class.areaFine === "Glowing Mushroom Cave") { + if (this.showGlowingMushrooms.getValue() && 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) { |