aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
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
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')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryKeybindsConfig.java10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryKeybinds.kt6
2 files changed, 14 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryKeybindsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryKeybindsConfig.java
index 7e68a1d7a..bd42edbe1 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryKeybindsConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryKeybindsConfig.java
@@ -38,4 +38,14 @@ public class ChocolateFactoryKeybindsConfig {
@ConfigOption(name = "Key 5", desc = "Key for Rabbit Granny.")
@ConfigEditorKeybind(defaultKey = Keyboard.KEY_5)
public int key5 = Keyboard.KEY_5;
+
+ @Expose
+ @ConfigOption(name = "Key 6", desc = "Key for Rabbit Uncle.")
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_6)
+ public int key6 = Keyboard.KEY_6;
+
+ @Expose
+ @ConfigOption(name = "Key 7", desc = "Key for Rabbit Dog.")
+ @ConfigEditorKeybind(defaultKey = Keyboard.KEY_7)
+ public int key7 = Keyboard.KEY_7;
}
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
}
}