From 5595ba9f25365aad0c5aaa1b3641f0617d869834 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Fri, 22 Apr 2022 13:05:04 +0800 Subject: make titles only show up when showing waypoints --- features/events/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'features/events/index.js') 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 -- cgit