From 22bbcec4bceba8e8b314d18bf9b54bfc2c591ba3 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:41:25 +0800 Subject: + fix double powder not disabling + (possibly) fix diana warp hotkey being buggy --- src/features/specialMining/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/features/specialMining') diff --git a/src/features/specialMining/index.js b/src/features/specialMining/index.js index e548b87..8b13ac3 100644 --- a/src/features/specialMining/index.js +++ b/src/features/specialMining/index.js @@ -192,7 +192,7 @@ class PowderAndScatha extends Feature { if (this.chestUncoverAlertSound.getValue()) World.playSound("random.levelup", 1, 1); }) - this.registerChat("&r&r&r${space}&r&b&l2X POWDER ${status}!&r", (space, status, e) => { + this.registerChat("${space}&r&b&l2X POWDER ${status}!&r", (space, status, e) => { if (status.removeFormatting() === "STARTED") { this.dPowder = Date.now() + 15 * 1000 * 60 } else this.dPowder = 0 @@ -385,6 +385,8 @@ class PowderAndScatha extends Feature { }); } + if (Date.now() > this.dPowder) this.dPowder = 0 + this.overlayLeft = [] this.overlayRight = [] -- cgit