[Companion Bug] Game crashes when starting/loading world
TechnoMysterio opened this issue · 1 comments
Description
When creating a new world or starting an old one, the game crashes when it tries to start. This seems to only be happening in CleanroomMC when Companion is installed, I couldn't get it to happen in another instance.
Environment
The issue is present in Single-Player, can't check Multi-Player
Other mods
The issue is present with Forge, Witchery: Resurrected and Witchery: Companion, using a CleanroomMC Minecraft instance.
Steps to Reproduce
The more detailed is provided, the easier will be to reproduce and analyze the issue, thus more chances to solve it
- Make a CleanroomMC 1.12.2 instance, and install Witchery: Resurrected with Witchery: Companion.
- Open it, and create or start a world.
- Game should crash.
Crash Report / logs
https://pastebin.com/iXTbrds4
It seems like removing the toAbsolutePath
call from the path passed to relativize
might be enough to fix this. For some reason, the paths seem to have an extra dot (.
) at the front on newer Java versions, which CleanroomMC uses. For reference, here are examples of paths I printed out:
Normal Forge (Java 8):
rootPath: /data/witchery/recipes
fPath: /data/witchery/recipes/spinning_wheel/fanciful_thread.json
fPath.toAbsolutePath: /data/witchery/recipes/spinning_wheel/fanciful_thread.json
CleanroomMC (Java 22):
rootPath: ./data/witchery/recipes
fPath: ./data/witchery/recipes/spinning_wheel/fanciful_thread.json
fPath.toAbsolutePath: /./data/witchery/recipes/spinning_wheel/fanciful_thread.json