diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-20 14:55:58 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-20 14:55:58 +0800 |
commit | b7a68ab7548a81f1b56f124c631694050b097a87 (patch) | |
tree | 6f62cae679179385d3a00cf138b95fc57d98f4c9 | |
parent | 21b5e130b7d0a88e1e469ee675e34dedbd8e9ee0 (diff) | |
download | SoopyV2-b7a68ab7548a81f1b56f124c631694050b097a87.tar.gz SoopyV2-b7a68ab7548a81f1b56f124c631694050b097a87.tar.bz2 SoopyV2-b7a68ab7548a81f1b56f124c631694050b097a87.zip |
meta+ fix god potion alert
-rw-r--r-- | src/features/hud/index.js | 4 | ||||
-rw-r--r-- | src/metadata.json | 4 |
2 files changed, 4 insertions, 4 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!") } diff --git a/src/metadata.json b/src/metadata.json index ff1e921..ccf0d60 100644 --- a/src/metadata.json +++ b/src/metadata.json @@ -5,8 +5,8 @@ "entry": "index.js", "description": "SoopyV2", "name": "SoopyV2", - "version": "2.1.161", - "versionId": 288, + "version": "2.1.162", + "versionId": 289, "requires": [ "soopyApis", "soopyAddonsData", |