Skyblock Builder

Skyblock Builder

6M Downloads

failed to load java.lang.IllegalStateException

niemandvs opened this issue ยท 3 comments

commented

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

  1. start mod with minecraft forge version 36.1.25
  2. get error java.lang.IllegalStateException for skyblockbuilder

Expected behavior

Screenshots

crash-2021-06-07_07.59.53-fml.txt

commented

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

commented

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.

commented

Please fill out everything. Otherwise I will close this.