diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-02-10 21:59:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-10 21:59:37 +0100 |
commit | 7336d09d4f7da51f3b781b19b881a9cda7182783 (patch) | |
tree | e6b1d77142179ecbb81fd0245a21f2c682f4339a /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 8b3e7017b810b68145e9364a7b10cecd3f386f49 (diff) | |
download | skyhanni-7336d09d4f7da51f3b781b19b881a9cda7182783.tar.gz skyhanni-7336d09d4f7da51f3b781b19b881a9cda7182783.tar.bz2 skyhanni-7336d09d4f7da51f3b781b19b881a9cda7182783.zip |
Fixed shift click npc sell not working for menus with different sizes. #990
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt index 33731505f..d33fead7f 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt @@ -275,7 +275,8 @@ object LorenzUtils { slot?.slotNumber?.let { slotNumber -> Minecraft.getMinecraft().playerController.windowClick( container.windowId, slotNumber, 0, 1, Minecraft.getMinecraft().thePlayer - )?.also { isCanceled = true } + ) + isCanceled = true } private val recalculateDerpy = |