aboutsummaryrefslogtreecommitdiff
path: root/src/features/betterGuis/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-10-04 21:23:48 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-10-04 21:23:48 +0800
commit2d463dc118b0d73605906ae0c2e4419bf39e8571 (patch)
treeda97464dadad112db7975c35fa931b4bd5ee9be6 /src/features/betterGuis/index.js
parent3a8cc7cc26ac3b48734b167d7ea2a6fef66cd513 (diff)
downloadSoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.tar.gz
SoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.tar.bz2
SoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.zip
+ fix game freeze on first dungeon of the day
+ (potential) fix memory leak when doing lots of /ct reload + add seperate setting for powder info on hud to rest of powder features
Diffstat (limited to 'src/features/betterGuis/index.js')
-rw-r--r--src/features/betterGuis/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/features/betterGuis/index.js b/src/features/betterGuis/index.js
index dcd8fb9..d125a2f 100644
--- a/src/features/betterGuis/index.js
+++ b/src/features/betterGuis/index.js
@@ -297,15 +297,15 @@ class BetterGuis extends Feature {
return;
}
if (this.lastWindowId === 0) {
- this.lastWindowId = Player.getContainer().getWindowId();
+ this.lastWindowId = Player.getContainer()?.getWindowId();
return;
}
- if (Player.getContainer().getWindowId() === this.lastWindowId) {
+ if (Player.getContainer()?.getWindowId() === this.lastWindowId) {
this.shouldHold--
return;
}
- this.lastWindowId = Player.getContainer().getWindowId();
+ this.lastWindowId = Player.getContainer()?.getWindowId();
this.shouldHold += 10;
if (Date.now() - this.clickSlotTime > 1000) {
this.clickSlot = -1;