aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryInventory.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryInventory.kt b/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryInventory.kt
index b62d437ad..46d8e966d 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryInventory.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryInventory.kt
@@ -121,8 +121,10 @@ object ChocolateFactoryInventory {
fun onSlotClick(event: GuiContainerEvent.SlotClickEvent) {
if (!ChocolateFactoryAPI.inChocolateFactory) return
val slot = event.slot ?: return
+ val slotNumber = slot.slotNumber
if (!config.useMiddleClick) return
- if (slot.slotNumber in ChocolateFactoryAPI.noPickblockSlots) return
+ if (slotNumber in ChocolateFactoryAPI.noPickblockSlots &&
+ (slotNumber != ChocolateFactoryAPI.timeTowerIndex || event.clickedButton == 1)) return
event.makePickblock()
}