diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-22 13:05:04 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-22 13:05:04 +0800 |
commit | 5595ba9f25365aad0c5aaa1b3641f0617d869834 (patch) | |
tree | 401fc4d6e913b5310eb5f9aff9e6b0310653c2a6 | |
parent | 2cfc95522fa4c28ebcd9d091bc0a0c5f80e1aaeb (diff) | |
download | SoopyV2-5595ba9f25365aad0c5aaa1b3641f0617d869834.tar.gz SoopyV2-5595ba9f25365aad0c5aaa1b3641f0617d869834.tar.bz2 SoopyV2-5595ba9f25365aad0c5aaa1b3641f0617d869834.zip |
make titles only show up when showing waypoints
-rw-r--r-- | features/events/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/events/index.js b/features/events/index.js index 9879500..0a4287c 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -158,7 +158,7 @@ class Events extends Feature { let finalPoint2 = [this.particlePoint[0] + changes[0] * distance2, this.particlePoint[1] + changes[1] * distance2, this.particlePoint[2] + changes[2] * distance2] this.guessPoint2 = finalPoint2 - Client.showTitle("&cGo!", "", 0, 20, 20) + if (this.showingWaypoints) Client.showTitle("&cGo!", "", 0, 20, 20) } } @@ -198,7 +198,7 @@ class Events extends Feature { } spawnParticle(particle, type, event) { - if (this.showBurrialGuess.getValue() && particle.toString().startsWith("SparkFX,")) { + if (this.showingWaypoints && this.showBurrialGuess.getValue() && particle.toString().startsWith("SparkFX,")) { let run = false if (Math.abs(particle.getX() - Player.getX()) < 3 && Math.abs(particle.getY() - Player.getY()) < 3 && Math.abs(particle.getZ() - Player.getZ()) < 3) { run = true |