diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-25 00:25:52 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-25 00:25:52 +0800 |
commit | 999ef1f72ba85d8534805f3b08a9084e792fbf04 (patch) | |
tree | 17988ab21fed4980141e7755e974431430bf07ce /features/dataLoader | |
parent | 6695867c01a718d20800394fe0685fba598e57b6 (diff) | |
download | SoopyV2-999ef1f72ba85d8534805f3b08a9084e792fbf04.tar.gz SoopyV2-999ef1f72ba85d8534805f3b08a9084e792fbf04.tar.bz2 SoopyV2-999ef1f72ba85d8534805f3b08a9084e792fbf04.zip |
CI 2
Diffstat (limited to 'features/dataLoader')
-rw-r--r-- | features/dataLoader/index.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/features/dataLoader/index.js b/features/dataLoader/index.js index 43b0f7a..42d0ec5 100644 --- a/features/dataLoader/index.js +++ b/features/dataLoader/index.js @@ -69,12 +69,16 @@ class DataLoader extends Feature { step(){ //2fps this.stats["Area"] = undefined this.stats["Dungeon"] = undefined - TabList.getNames().forEach(n=>{ - n = ChatLib.removeFormatting(n) - if(n.includes(": ")){ - this.stats[n.split(": ")[0].trim()] = n.split(": ")[1].trim() - } - }) + + if(TabList && TabList.getNames()){ + TabList.getNames().forEach(n=>{ + n = ChatLib.removeFormatting(n) + if(n.includes(": ")){ + this.stats[n.split(": ")[0].trim()] = n.split(": ")[1].trim() + } + }) + } + if(this.stats["Dungeon"]){ this.stats["Area"] = this.stats["Dungeon"] this.isInDungeon = true |