TwelveIterationMods / DefaultOptions

Minecraft Mod. A way for modpacks to ship default settings without having to include an options.txt file.
https://mods.twelveiterations.com/mc/default-options/
Other
9 stars 9 forks source link

DefaultOptions resets my keybinds on every launch #86

Open saffaffi opened 1 week ago

saffaffi commented 1 week ago

Security Notice

Minecraft Version

1.21.1

Mod Loader

NeoForge

Mod Loader Version

21.1.41

Mod Version

21.1.1

Balm Version

21.0.19

Describe the Issue

Every time I launch my Technical Electrical: Secret Schemes 5.0.0.29.1 Beta instance (a modpack that includes DefaultOptions), my keybinds reset to their defaults. I have to customise the same ones every time I launch, because they're back to the way they were before.

I tried removing files from the .minecraft/config/defaultoptions/ folder in the hope that that would stop DefaultOptions from doing this, but that didn't work - I had to actually disable (remove) the mod from the modpack, and that then fixed the problem.

The logs I've attached are from a run of the modpack where there were no files in .minecraft/config/defaultoptions/, but the keybinds were reset regardless. The reset happens on launch, before I've joined a server or a world.

Logs

latest.log

Do you use any performance-enhancing mods (e.g. OptiFine) or custom server distributions (e.g. SpongeForge)?

No OptiFine or custom server

BlayTheNinth commented 4 days ago

There is only one case where Default Options changes the value of a key mapping, and it's if there's both a default key defined, and the key in question is not an already known key.

The logs show Found 0 default keys and 239 known keys, so neither condition is met and Default Options is not changing the key mapping through any regular means. I can also not reproduce this when using only Default Options by itself, nor with a small pack containing Default Options and another mod adding keybindings.

That means this is most likely an edge case caused by one of the other mods in that pack and it would first need a reliable reproduction case in order to be fixed.