Fabric API

Fabric API

106M Downloads

Separate mod keybinds from vanilla options

Madis0 opened this issue · 3 comments

commented

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.

commented

Probably not something we will ever fix, running a vanilla client in a modded instance folder is generally a bad idea.

commented

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!

commented

Personally I think it'd be good to have an options folder which mods can use—sorta like the config folder—but to store client-side options