Skip to content

Commit

Permalink
Grabbing KeyBinds instead of defaultBinds
Browse files Browse the repository at this point in the history
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()
  • Loading branch information
siede2010 authored Nov 16, 2024
1 parent 1267be2 commit 5f0ca79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java/scheme/moded/ModedBinding.java
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand All @@ -61,4 +61,4 @@ public static void load() {

Main.log("Mod keybinds loaded.");
}
}
}

0 comments on commit 5f0ca79

Please # to comment.