In my ClientProxy class I register a keybinding as so, and everything works as expected...
public ClientProxy()
{
boolean[] repeatFalse = {false};
KeyBinding[] key_K = {new KeyBinding("Distance Measurer Toggle", Keyboard.KEY_K)};
KeyBindingRegistry.registerKeyBinding(new DistanceMeasurerKeyHandler(key_K, repeatFalse));
}
...but if I change the hotkey from "K" to anything else in the Options > Controls menu then the change isn't saved after I restart Minecraft. I noticed that in the
options.txt
file it shows my custom keybinding, but it also gets erased sometimes.
Any ideas?