diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryInventory.kt | 4 |
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() } |