diff options
Diffstat (limited to 'src/features/betterGuis/index.js')
-rw-r--r-- | src/features/betterGuis/index.js | 6 |
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; |