aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhoebe <77941535+catgirlseraid@users.noreply.github.com>2024-10-27 06:30:20 +1300
committerGitHub <noreply@github.com>2024-10-26 19:30:20 +0200
commit79580af37a5ea70511717b8e34a4607db46583f9 (patch)
treeec9482c1eeaf017bd6cb231e7ae2f3fe17ae3472
parent69e74cce8912fe00dac3120b465f413870ec2526 (diff)
downloadSkyHanni-79580af37a5ea70511717b8e34a4607db46583f9.tar.gz
SkyHanni-79580af37a5ea70511717b8e34a4607db46583f9.tar.bz2
SkyHanni-79580af37a5ea70511717b8e34a4607db46583f9.zip
Fix: brewing stand shift click close button (#2824)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ShiftClickBrewing.kt3
1 files changed, 2 insertions, 1 deletions
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