Endyl Posted February 22, 2014 Posted February 22, 2014 During FMLPreInitializationEvent I add a custom KeyBinding by registering it with ClientRegistry.registerKeyBinding(). The KeyBinding works as expected except for it not being loaded at startup by GameSettings::loadOptions. The KeyBinding is saved to options.txt and the respective line is processed in GameSettings::loadOptions but GameSettings::keyBindings does not contain any KeyBindings registered with ClientRegistry at this point, so the saved value is not loaded and the default key is used after every client restart. Can be solved by calling GameSettings::loadOptions after registering KeyBindings from mod code as a workaround. Quote
LexManos Posted February 23, 2014 Posted February 23, 2014 https://github.com/MinecraftForge/FML/commit/e8b60441ccca8cccdc130560b4c8bf400aebc605 Next time FML is synced, it'll be included. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.