aboutsummaryrefslogtreecommitdiff
path: root/features/hud/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/hud/index.js')
-rw-r--r--features/hud/index.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/features/hud/index.js b/features/hud/index.js
index 27d12e5..b580908 100644
--- a/features/hud/index.js
+++ b/features/hud/index.js
@@ -253,12 +253,13 @@ class Hud extends Feature {
this.apiLoad(this.FeatureManager.features["dataLoader"].class.lastApiData.skyblock_raw, "skyblock", false, true)
}
- new Thread(() => { //TODO: dont create this thread if you have the feature disabled
- while (this.enabled) {
+ this.registerStep(false, 5, () => {
+ if (!this.showSpotifyPlaying.getValue()) return
+
+ new Thread(() => {
this.updateSpotify()
- Thread.sleep(5000)
- }
- }).start()
+ }).start()
+ })
this.registerActionBar("${m}", this.actionbarMessage)
}