aboutsummaryrefslogtreecommitdiff
path: root/src/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-20 14:55:58 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-20 14:55:58 +0800
commitb7a68ab7548a81f1b56f124c631694050b097a87 (patch)
tree6f62cae679179385d3a00cf138b95fc57d98f4c9 /src/features
parent21b5e130b7d0a88e1e469ee675e34dedbd8e9ee0 (diff)
downloadSoopyV2-b7a68ab7548a81f1b56f124c631694050b097a87.tar.gz
SoopyV2-b7a68ab7548a81f1b56f124c631694050b097a87.tar.bz2
SoopyV2-b7a68ab7548a81f1b56f124c631694050b097a87.zip
meta+ fix god potion alert
Diffstat (limited to 'src/features')
-rw-r--r--src/features/hud/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/hud/index.js b/src/features/hud/index.js
index cb94cbe..97e8a8e 100644
--- a/src/features/hud/index.js
+++ b/src/features/hud/index.js
@@ -641,7 +641,7 @@ class Hud extends Feature {
}
text += `&6God potion&7>&f ${timeLeft}\n`
- if (this.potsOutAlert.getValue() && godPotTime - Date.now() > 60000 && Date.now() - (this.lastPotAlerts["godpot"] || 0) > 2 * 60000) {
+ if (this.potsOutAlert.getValue() && godPotTime - Date.now() < 60000 && Date.now() - (this.lastPotAlerts["godpot"] || 0) > 2 * 60000) {
this.lastPotAlerts["godpot"] = Date.now()
ChatLib.chat(this.FeatureManager.messagePrefix + "Your God potion is about to run out!")
}
@@ -654,7 +654,7 @@ class Hud extends Feature {
let potName = firstLetterCapital(k.replace(/_/g, " "))
- if (this.potsOutAlert.getValue() && potData.time - Date.now() > 60000 && Date.now() - (this.lastPotAlerts[k] || 0) > 2 * 60000) {
+ if (this.potsOutAlert.getValue() && potData.time - Date.now() < 60000 && Date.now() - (this.lastPotAlerts[k] || 0) > 2 * 60000) {
this.lastPotAlerts[k] = Date.now()
ChatLib.chat(this.FeatureManager.messagePrefix + "Your " + potName + " is about to run out!")
}