[Bug] Launching the Kotlin Version Fails to Generated Config Files and Crashes
s4mothy opened this issue ยท 4 comments
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
- Download the Kotlin version of this mod and its dependencies to a fresh fabric-ready Minecraft (v.0.15.11)
- Launch the game.
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:
- Minecraft Version: [1.20.1]
- Mod Version [2.0.2]
- CLOTH CONFIG [11.1.118], KOTLIN [1.10.19], FABRIC API [0.19.1]
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?
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()
.