diff options
| author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-03-07 08:46:22 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-06 22:46:22 +0100 |
| commit | 6da1f6daeea8383de0f363fcb007cc9df15afd45 (patch) | |
| tree | 693a104b1dfaec685d9219bb96e4e2ab5d9fcf0e /src/main/java/at/hannibal2/skyhanni/mixins | |
| parent | de0f0e888a4c0767c8e8ca911113482a3b1f9d5c (diff) | |
| download | skyhanni-6da1f6daeea8383de0f363fcb007cc9df15afd45.tar.gz skyhanni-6da1f6daeea8383de0f363fcb007cc9df15afd45.tar.bz2 skyhanni-6da1f6daeea8383de0f363fcb007cc9df15afd45.zip | |
Backend: Reformat code in all files in src directory (#1109)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt index d855c6e5a..8c8ed5ab8 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt @@ -40,7 +40,16 @@ class GuiContainerHook(guiAny: Any) { } fun onMouseClick(slot: Slot?, slotId: Int, clickedButton: Int, clickType: Int, ci: CallbackInfo) { - if (SlotClickEvent(gui, gui.inventorySlots, gui.inventorySlots?.inventory?.takeIf { it.size > slotId && slotId >= 0 }?.get(slotId), slot, slotId, clickedButton, clickType).postAndCatch()) ci.cancel() + if (SlotClickEvent( + gui, + gui.inventorySlots, + gui.inventorySlots?.inventory?.takeIf { it.size > slotId && slotId >= 0 }?.get(slotId), + slot, + slotId, + clickedButton, + clickType + ).postAndCatch() + ) ci.cancel() } fun onDrawScreenAfter( |
