Separate mod keybinds from vanilla options
Madis0 opened this issue · 3 comments
Not sure if this is related to API or loader, assuming the former.
When Fabric loads the mods, default keybind values are appended to options.txt
. The user can change them (or any other setting) and they are saved properly.
Now, if a non-Fabric client (e.g. vanilla) runs the in the same folder and changes any setting, the Fabric keybinds will get removed from the file, presumably because they are unknown to the client. To user, it means that any modified keybinds are reset when next launching the Fabric profile.
I propose it can be solved like Optifine does - just a separate file like optionsof.txt
.
Probably not something we will ever fix, running a vanilla client in a modded instance folder is generally a bad idea.
That's actually non-trivial due to the way we currently store the keybinds - by appending them to the list used for saving them in the first place!