The change is really simple, just by throwing an exception earlier in the chain, minecraft's server init logic is able to catch it and keep running. I'm not really 100% sure of the reason why, I just know that it works
This fix is particularly important for the pack I have recently released, Forever Factory, since it will always crash on world creation with the "Skyblock" preset, where with this patch, it never crashes.
This patch fixes https://github.com/BluSunrize/ImmersiveEngineering/issues/5290 , where the game will crash due to empty array passed to getPreferredStackbyMod.
The change is really simple, just by throwing an exception earlier in the chain, minecraft's server init logic is able to catch it and keep running. I'm not really 100% sure of the reason why, I just know that it works
This fix is particularly important for the pack I have recently released, Forever Factory, since it will always crash on world creation with the "Skyblock" preset, where with this patch, it never crashes.
Steps to verify the PR fix:
I am not sure if 1.19.2 is still supported, but I hope an exception can be made to fix this critical issue that strongly affects my modpack.
I am also open to further change requests if this PR is not satisfactory.
Have a nice day :)