From 79580af37a5ea70511717b8e34a4607db46583f9 Mon Sep 17 00:00:00 2001 From: Phoebe <77941535+catgirlseraid@users.noreply.github.com> Date: Sun, 27 Oct 2024 06:30:20 +1300 Subject: Fix: brewing stand shift click close button (#2824) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../java/at/hannibal2/skyhanni/features/inventory/ShiftClickBrewing.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ShiftClickBrewing.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ShiftClickBrewing.kt index 65c0d3940..824d95789 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ShiftClickBrewing.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ShiftClickBrewing.kt @@ -11,6 +11,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @SkyHanniModule object ShiftClickBrewing { + private val closeButtonIndex = 49 @SubscribeEvent fun onSlotClick(event: GuiContainerEvent.SlotClickEvent) { @@ -19,7 +20,7 @@ object ShiftClickBrewing { if (event.gui !is GuiChest) return - if (event.slot == null) return + if (event.slot == null || event.slotId == closeButtonIndex) return val chestName = InventoryUtils.openInventoryName() if (!chestName.startsWith("Brewing Stand")) return -- cgit