Closed s4mothy closed 6 months ago
Thanks for reaching out, unfortunately I cannot reproduce this issue. Are there any more details about the instance or the multimc setup that you could provide?
Anyway I try it it's always safely creating a new config file if one wasn't there previously.
As it can be seen here the game shouldn't even crash if it fails to read? https://github.com/Bernasss12/BetterEnchantedBooks/blob/9c7ce2d6e16e5a7972cd2f5286909ff764c1eb4a/src/main/kotlin/dev/bernasss12/bebooks/manage/SavedConfigsManager.kt#L62-L98
It's not the reading but the writing that fails. save()
doesn't create the bebook
dir before trying to write the config file into it.
The Java version uses Files.createDirectories(CONFIG_DIR);
for that.
P.S.
To reproduce the issue, simply delete the bebook
dir.
If CONFIG_DIR
is a File
, you can also use CONFIG_DIR.mkdirs()
.
Yep, that makes sense. Will push a fix later today :)
The fix was released, just have to let it be approved by the platforms.
Describe the bug The Kotlin version of the mod fails to generate the config files if they are not present, and will crash if they have not been generated previously (via the stable release version).
To Reproduce
Expected behavior The game should launch without crashing. If the config files for the mod were not previously present, they should be generated in the config folder.
Screenshots N/A
Crash Report crash-2024-05-04_13.29.10-client.txt
Please include: