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 /features/hud/index.js | |
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
Diffstat (limited to 'features/hud/index.js')
-rw-r--r-- | features/hud/index.js | 8 |
1 files changed, 8 insertions, 0 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 => { |