From 4f4ad2492a0819726fbf897746fde46d9467a359 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 1 May 2022 21:20:40 +0800 Subject: make hud load api if u have souldflow display enabled --- features/hud/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'features/hud/index.js') 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 => { -- cgit