aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorraaaaaven <168305416+raaaaaven@users.noreply.github.com>2024-05-28 16:45:14 +0100
committerGitHub <noreply@github.com>2024-05-28 17:45:14 +0200
commit88fc5b7514a69f8b8fc05d7b74104e2036b00c89 (patch)
tree9ef5333a217fc389a094d564a4d941054c3a8177 /src/main/java/at/hannibal2/skyhanni/features
parent00013413f63de6ce628a1060c792cdbb7f324042 (diff)
downloadskyhanni-88fc5b7514a69f8b8fc05d7b74104e2036b00c89.tar.gz
skyhanni-88fc5b7514a69f8b8fc05d7b74104e2036b00c89.tar.bz2
skyhanni-88fc5b7514a69f8b8fc05d7b74104e2036b00c89.zip
Improvement: Adjusted Chocolate Factory Keybinds (#1907)
Co-authored-by: raven <raveeeennnn@hotmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryKeybinds.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryKeybinds.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryKeybinds.kt
index 2c0920db3..546e127c4 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryKeybinds.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryKeybinds.kt
@@ -22,7 +22,7 @@ object ChocolateFactoryKeybinds {
val chest = event.guiContainer as? GuiChest ?: return
- for (index in 0..4) {
+ for (index in 0..6) {
val key = getKey(index) ?: error("no key for index $index")
if (!key.isKeyClicked()) continue
if (lastClick.passedSince() < 200.milliseconds) break
@@ -32,7 +32,7 @@ object ChocolateFactoryKeybinds {
Minecraft.getMinecraft().playerController.windowClick(
chest.inventorySlots.windowId,
- 29 + index,
+ 28 + index,
2,
3,
Minecraft.getMinecraft().thePlayer
@@ -59,6 +59,8 @@ object ChocolateFactoryKeybinds {
2 -> config.key3
3 -> config.key4
4 -> config.key5
+ 5 -> config.key6
+ 6 -> config.key7
else -> null
}
}