aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/events/index.js8
-rw-r--r--features/hud/index.js7
2 files changed, 9 insertions, 6 deletions
diff --git a/features/events/index.js b/features/events/index.js
index 58c408b..7ce40c8 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -152,7 +152,7 @@ class Events extends Feature {
if(!this.showingWaypoints && showingWaypointsNew){
this.loadApi()
- }else{
+ }else if(showingWaypointsNew){
if(Date.now()-this.nextUpdateApprox > 0 && this.nextUpdateApprox > 0 && Date.now()-this.lastRequest>5000){
this.nextUpdateApprox = -2
this.loadApi()
@@ -264,8 +264,10 @@ class Events extends Feature {
})
this.burrialData.locations = newLocs
- this.sortBurrialLocations()
- this.updateBurrialPath()
+ if(this.showingWaypoints){
+ this.sortBurrialLocations()
+ this.updateBurrialPath()
+ }
}
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)