From 5f0ca799d65aac0f4c24538e780100247b784b4d Mon Sep 17 00:00:00 2001 From: Siede <63005632+siede2010@users.noreply.github.com> Date: Sat, 16 Nov 2024 14:20:06 +0100 Subject: [PATCH] Grabbing KeyBinds instead of defaultBinds While having this mod active, it would actively overwrite any keybinds that other mods put in. Keybinds.getKeybinds() gets all assigned keybinds instead of just mindustry's default Binds.values() --- src/java/scheme/moded/ModedBinding.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/scheme/moded/ModedBinding.java b/src/java/scheme/moded/ModedBinding.java index cf014fd..6cf2f8e 100644 --- a/src/java/scheme/moded/ModedBinding.java +++ b/src/java/scheme/moded/ModedBinding.java @@ -48,7 +48,7 @@ public String category() { } public static void load() { - KeyBind[] orign = (KeyBind[]) Binding.values(); + KeyBind[] orign = (KeyBind[]) keybinds.getKeybinds(); KeyBind[] moded = (KeyBind[]) values(); KeyBind[] binds = new KeyBind[orign.length + moded.length]; @@ -61,4 +61,4 @@ public static void load() { Main.log("Mod keybinds loaded."); } -} \ No newline at end of file +}