failed to load java.lang.IllegalStateException
niemandvs opened this issue ยท 3 comments
Versions
Minecraft: 1.16.5
Forge: 36.1.25
Skyblock Builder: skyblockbuilder-1.16.4-1.5.6.jar
Modpack:
not release
Describe the bug
How to reproduce
- start mod with minecraft forge version 36.1.25
- get error java.lang.IllegalStateException for skyblockbuilder
Expected behavior
Screenshots
Please fill out everything. Otherwise I will close this.
is there any info more i dont have modpack its a new creation by me to create starting island and so on
The problem is that you try to delete the old config even if it does not exist. The correct approach would be to use Files.deleteIfExists
here. Also your should not throw an exception if it fails because some operating systems prevent deletion of files that are opened in another program (which in this case could be forge having the config file open). In that case I think it would be the best to just log that deletion of the file failed and maybe display a message to the player and tell him to delete the file manually.