diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-02 11:11:17 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-02 11:11:17 +0800 |
commit | 3151ad980883a1969500a93a4f4504ac19e4c9a8 (patch) | |
tree | 0520ea5ae60aefb071c5ce5122104c39bca0abe0 /features/hud | |
parent | 1855ae3ac49d0bc4e963566563112c0e6bc2c21b (diff) | |
download | SoopyV2-3151ad980883a1969500a93a4f4504ac19e4c9a8.tar.gz SoopyV2-3151ad980883a1969500a93a4f4504ac19e4c9a8.tar.bz2 SoopyV2-3151ad980883a1969500a93a4f4504ac19e4c9a8.zip |
Make more features work when my server is down
Diffstat (limited to 'features/hud')
-rw-r--r-- | features/hud/index.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/features/hud/index.js b/features/hud/index.js index 917a2f6..41aa953 100644 --- a/features/hud/index.js +++ b/features/hud/index.js @@ -216,7 +216,8 @@ class Hud extends Feature { this.registerEvent("worldLoad", this.worldLoad) this.petLevels = {} - this.petText = "" + this.petText = "&6Pet&7> &fLoading..." + this.petElement.setText(this.petText) this.registerChat("&cAutopet &eequipped your ${pet}&e! &a&lVIEW RULE&r", (pet)=>{ this.petElement.setText("&6Pet&7> "+pet) this.petText = "&6Pet&7> "+pet @@ -515,7 +516,7 @@ class Hud extends Feature { let song = parts[parts.length-1].substr(0,parts[parts.length-1].length-1) if(song === "N/A") continue - if(song === "Spotify Free"||song === "AngleHiddenWindow"){ + if(song === "Spotify Free"||song === "Spotify Premium"||song === "AngleHiddenWindow"){ currentSong = "&cPaused" }else{ if(song === "Spotify") song = "Advertisement" @@ -531,7 +532,7 @@ class Hud extends Feature { updateHudThingos(){ let insb = this.FeatureManager.features["dataLoader"].class.isInSkyblock - if(Date.now()-this.lastUpdatedStatData > 5*60000 && this.hudStat[0].enabled.getValue() && (insb || this.hudStat.map(a=>a.onlySb.getValue()).includes(false))){ + if(Date.now()-this.lastUpdatedStatData > 5*60000 && this.hudStat[0].enabled.getValue() && (!this.lastStatData || insb || this.hudStat.map(a=>(!a.enabled.getValue() || a.onlySb.getValue())).includes(false))){ this.FeatureManager.features["dataLoader"].class.loadApiData("skyblock", false) |