but after restarting the game and opening the config menu, the option's value is reset to the default value of _uploadMode.
I watched the config file during start-up and the value stayed as it should be when closing the game and the menu initially. It only resets when I open the menu.
The issue was being caused by Kotlin init blocks not being called as I expected them to. I fixed the issue by calling Vigilant#initialize in my init function.
I'm making a property using the property DSL with an i18n name, description:
but after restarting the game and opening the config menu, the option's value is reset to the default value of
_uploadMode
.I watched the config file during start-up and the value stayed as it should be when closing the game and the menu initially. It only resets when I open the menu.
I'm using Fabric 1.18.1 and Vigilance build
227
.