aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-14 20:21:13 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-14 20:21:13 +0800
commit926dd831feaa0d88e141b954d2084e19b2ab9529 (patch)
treea25805a71f3027befc82306f0de0be654080e35d /features/globalSettings
parent34b98541206f8f31d91dd4f89bd5ecb50aa46ed0 (diff)
downloadSoopyV2-926dd831feaa0d88e141b954d2084e19b2ab9529.tar.gz
SoopyV2-926dd831feaa0d88e141b954d2084e19b2ab9529.tar.bz2
SoopyV2-926dd831feaa0d88e141b954d2084e19b2ab9529.zip
+ optimisations to loading spotify current song
Diffstat (limited to 'features/globalSettings')
-rw-r--r--features/globalSettings/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index 11d8d9a..89adc5c 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -82,10 +82,10 @@ class GlobalSettings extends Feature {
this.lastCookies = 0
this.registerEvent("postGuiRender", () => {
- if (Player.getContainer().getName() === "Cookie Clicker v0.01" && Player.getContainer().getStackInSlot(13)) this.renderCookie()
+ if (Player.getContainer() && Player.getContainer().getName() === "Cookie Clicker v0.01" && Player.getContainer().getStackInSlot(13)) this.renderCookie()
})
this.registerStep(false, 1, () => {
- if (Player.getContainer().getName() === "Cookie Clicker v0.01" && Player.getContainer().getStackInSlot(13)) this.tickCookie()
+ if (Player.getContainer() && Player.getContainer().getName() === "Cookie Clicker v0.01" && Player.getContainer().getStackInSlot(13)) this.tickCookie()
})
this.registerEvent("guiMouseClick", this.guiClicked)