diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-03-27 04:02:47 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-03-27 04:02:47 +0800 |
commit | b94794a3de8827f4bddb5251b010dc32943d79a1 (patch) | |
tree | 270b5b8ca4b85677cca1199aecd0268e211de678 /features/events/index.js | |
parent | 61f813aa1ab67ffcf0be66e6690c04a1c501c21e (diff) | |
download | SoopyV2-b94794a3de8827f4bddb5251b010dc32943d79a1.tar.gz SoopyV2-b94794a3de8827f4bddb5251b010dc32943d79a1.tar.bz2 SoopyV2-b94794a3de8827f4bddb5251b010dc32943d79a1.zip |
fixes + make diana retry untill it works
Diffstat (limited to 'features/events/index.js')
-rw-r--r-- | features/events/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/features/events/index.js b/features/events/index.js index 5bab213..912e566 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -195,7 +195,11 @@ class Events extends Feature { loadApi(){ new Thread(()=>{ - this.FeatureManager.features["dataLoader"].class.loadApiData("skyblock", false) + while(this.nextUpdateApprox === -2){ + this.FeatureManager.features["dataLoader"].class.loadApiData("skyblock", false) + + Thread.sleep(5000) + } }).start() } |