aboutsummaryrefslogtreecommitdiff
path: root/features/dataLoader/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-28 07:41:46 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-28 07:41:46 +0800
commit6b4a3494453850abbda11dd1f3a2e40274ee4c3e (patch)
treea695086bd1149e335439244466886f793a395189 /features/dataLoader/index.js
parent58c6efd5ee94d8daf3a2bd19426de466d454b690 (diff)
downloadSoopyV2-6b4a3494453850abbda11dd1f3a2e40274ee4c3e.tar.gz
SoopyV2-6b4a3494453850abbda11dd1f3a2e40274ee4c3e.tar.bz2
SoopyV2-6b4a3494453850abbda11dd1f3a2e40274ee4c3e.zip
Improvements to loading waypoints for diana
Diffstat (limited to 'features/dataLoader/index.js')
-rw-r--r--features/dataLoader/index.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/features/dataLoader/index.js b/features/dataLoader/index.js
index f320ea6..e06925c 100644
--- a/features/dataLoader/index.js
+++ b/features/dataLoader/index.js
@@ -32,11 +32,15 @@ class DataLoader extends Feature {
"player_raw": undefined
}
+ this.worldLoaded = true
+
this.loadApi()
}
worldLoad(){
this.area = undefined
+
+ this.worldLoaded = true
}
loadApi(){
@@ -57,8 +61,9 @@ class DataLoader extends Feature {
if(!key) return
if(this.loadedApiDatas[type] !== undefined){
- if(Date.now()-this.loadedApiDatas[type] < 5000) return
+ if(Date.now()-this.loadedApiDatas[type] < 5000 && !this.worldLoaded) return
}
+ this.worldLoaded =false
this.loadedApiDatas[type] = Date.now()