diff options
author | Obsidian <108832807+Obsidianninja11@users.noreply.github.com> | 2024-04-30 02:39:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 12:39:55 +0200 |
commit | 66f589488363e2dd84e3f611382a5705a8e8b2fc (patch) | |
tree | ff768bfb7021b6e440b7d8a2894d67aa399f387f /src/main/java/at/hannibal2 | |
parent | 7558c19e799f0ccb4efd12652dfa45020f00bc55 (diff) | |
download | skyhanni-66f589488363e2dd84e3f611382a5705a8e8b2fc.tar.gz skyhanni-66f589488363e2dd84e3f611382a5705a8e8b2fc.tar.bz2 skyhanni-66f589488363e2dd84e3f611382a5705a8e8b2fc.zip |
Fix: Allow middle clicking time tower (#1596)
Diffstat (limited to 'src/main/java/at/hannibal2')
-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() } |