Merge pull request #205 from KAMKEEL/codex/fix-crash-in-controls-menu-with-both-mods

Fix key binding registration to avoid Controls crash
This commit is contained in:
Kam authored and GitHub committed 2025-08-26 04:24:47 -04:00
commit 4245fc9820
13 files changed
+34 -19

No files matched your search

@@ -287,10 +287,9 @@ public class ClientProxy extends CommonProxy {
}
Minecraft mc = Minecraft.getMinecraft();
NPCButton = new KeyBinding("NPC Inventory", Keyboard.KEY_N, "key.categories.customnpc");
NPCButton = new KeyBinding("key.npcInventory", Keyboard.KEY_N, "key.categories.customnpc");
ClientRegistry.registerKeyBinding(NPCButton);
mc.gameSettings.loadOptions();
new PresetController(CustomNpcs.Dir);