diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-15 20:01:18 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-15 20:01:18 +0800 |
commit | 8463c933c4066b06cdf0de6b6aa9bfd6bea80840 (patch) | |
tree | 6271d67a00fb53ec66103acbd8fcaefe7e9b79c4 /features/betterGuis | |
parent | 8d345e970ee1f20e681511c3350cf7cb34861533 (diff) | |
download | SoopyV2-8463c933c4066b06cdf0de6b6aa9bfd6bea80840.tar.gz SoopyV2-8463c933c4066b06cdf0de6b6aa9bfd6bea80840.tar.bz2 SoopyV2-8463c933c4066b06cdf0de6b6aa9bfd6bea80840.zip |
+ fix bettergui features
Diffstat (limited to 'features/betterGuis')
-rw-r--r-- | features/betterGuis/index.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/features/betterGuis/index.js b/features/betterGuis/index.js index a2892d8..7e91d69 100644 --- a/features/betterGuis/index.js +++ b/features/betterGuis/index.js @@ -108,7 +108,7 @@ class BetterGuis extends Feature { "Active Effects" ]; - this.registerChat("&r&aDungeon starts in 1 second.&r", () => + this.registerChat("&r&aDungeon starts in 1 second.&r", () => this.dungeonReady.readyInOneSecond.call(this.dungeonReady)); this.registerChat("&r&aDungeon starts in 1 second. Get ready!&r", () => this.dungeonReady.readyInOneSecond.call(this.dungeonReady)); @@ -160,7 +160,7 @@ class BetterGuis extends Feature { } actionbarMana(curr, max) { - if (curr.includes("Mana")) + if (curr.includes("Mana")) curr = curr.split("&b").pop(); this.mana.set(parseInt(curr.replace(/,/g, "")), 500); @@ -218,15 +218,15 @@ class BetterGuis extends Feature { } postGuiRender(x, y, gui) { - if (gui instanceof net.minecraft.client.gui.inventory.GuiChest) + if (gui instanceof net.minecraft.client.gui.inventory.GuiChest.GuiChest) this.invSearchSoopyGui._render(x, y, 0); } guiMouseClick(x, y, button, gui) { - if (gui instanceof net.minecraft.client.gui.inventory.GuiChest) + if (gui instanceof net.minecraft.client.gui.inventory.GuiChest.GuiChest) this.invSearchSoopyGui._onClick(x, y, button); } guiKey(char, code, gui, event) { - if (!(gui instanceof net.minecraft.client.gui.inventory.GuiChest)) return; + if (!(gui instanceof net.minecraft.client.gui.inventory.GuiChest.GuiChest)) return; this.invSearchSoopyGui._onKeyPress(char, code); @@ -240,7 +240,7 @@ class BetterGuis extends Feature { } renderSlot(slot, gui, event) { - if (!(gui instanceof net.minecraft.client.gui.inventory.GuiChest)) return; + if (!(gui instanceof net.minecraft.client.gui.inventory.GuiChest.GuiChest)) return; if (!this.invSearchTextBox.getText()) return; let searchText = this.invSearchTextBox.getText().toLowerCase(); @@ -274,7 +274,7 @@ class BetterGuis extends Feature { } guiClicked(mouseX, mouseY, button, gui, event) { - if (!(gui instanceof net.minecraft.client.gui.inventory) || button !== 0 || !this.replaceSbMenuClicks.getValue()) return; + if (!(gui instanceof net.minecraft.client.gui.inventory.GuiChest) || button !== 0 || !this.replaceSbMenuClicks.getValue()) return; let hoveredSlot = gui.getSlotUnderMouse(); if (!hoveredSlot) return; |