diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-01 21:20:40 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-01 21:20:40 +0800 |
commit | 4f4ad2492a0819726fbf897746fde46d9467a359 (patch) | |
tree | 6f192f331fb9d4410e42cfedd63c293447e6e936 | |
parent | 7b3a599805d583871e8f2c2c0d279b052c86f280 (diff) | |
download | SoopyV2-4f4ad2492a0819726fbf897746fde46d9467a359.tar.gz SoopyV2-4f4ad2492a0819726fbf897746fde46d9467a359.tar.bz2 SoopyV2-4f4ad2492a0819726fbf897746fde46d9467a359.zip |
make hud load api if u have souldflow display enabled
-rw-r--r-- | features/hud/index.js | 8 | ||||
-rw-r--r-- | metadata.json | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/features/hud/index.js b/features/hud/index.js index b0bf45d..f3761d7 100644 --- a/features/hud/index.js +++ b/features/hud/index.js @@ -491,6 +491,14 @@ class Hud extends Feature { this.petElement.setText(this.petText) } + if (Date.now() - this.lastUpdatedStatData > 5 * 60000 && this.soulflowEnabledSetting.getValue()) { + + this.FeatureManager.features["dataLoader"].class.loadApiData("skyblock", false) + + this.lastUpdatedStatData = Date.now() + return + } + let soulflowCount = 0 let hasSoulflowItem = false Player.getInventory().getItems().forEach(i => { diff --git a/metadata.json b/metadata.json index 767fb6d..91d70b3 100644 --- a/metadata.json +++ b/metadata.json @@ -5,8 +5,8 @@ "entry": "index.js", "description": "SoopyV2", "name": "SoopyV2", - "version": "2.1.60", - "versionId": 187, + "version": "2.1.61", + "versionId": 188, "requires": [ "soopyApis", "soopyAddonsData", |