aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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
}
}