From 1ecfecc53f68a9ee371bf105eb8a656e0a98c5b3 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 11 Jan 2022 05:03:00 +0800 Subject: + Warning message when cannot connect to soopy server + Museum gui performance improvements + HUD api stat thingo + Settings for slayer features actually toggle things + Stat next to name loading time optimisations (should help if you are in a party) --- features/dataLoader/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'features/dataLoader') diff --git a/features/dataLoader/index.js b/features/dataLoader/index.js index e24c34c..9389c03 100644 --- a/features/dataLoader/index.js +++ b/features/dataLoader/index.js @@ -22,6 +22,8 @@ class DataLoader extends Feature { this.api_loaded_event = this.createCustomEvent("apiLoad") + this.loadedApiDatas = {} + this.lastApiData = { "skyblock": undefined, "player": undefined, @@ -52,6 +54,12 @@ class DataLoader extends Feature { let key = this.FeatureManager.features["globalSettings"].class.apiKeySetting.getValue() if(!key) return + if(this.loadedApiDatas[type] !== undefined){ + if(Date.now()-this.loadedApiDatas[type] < 5000) return + } + + this.loadedApiDatas[type] = Date.now() + if(soopyServer){ }else{ -- cgit