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 ++++++++ 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", -- cgit