
Incompatibility/Crashing on world create
SparkdotIe opened this issue ยท 3 comments
AutoReconnect seems to be throwing an NPE, causing other mods that require a join hook to fail and inevitably crash the game when loading into a newly generated world.
I'm unsure what all mods this effects, but it does cause a crash with Litematica/Malilib, We deduced that it stems from this:
java.lang.NullPointerException: Cannot invoke "autoreconnect.reconnect.ReconnectHandler.isAttempting()" because "this.reconnectHandler" is null
Joining a world when creating a new one seems to work a bit differently internally compared to joining an existing one from the menu, so the mod is not catching that at all. I have to admit, I didn't think of that during development. Thanks for letting me know :)
From the looks of it the game doesn't crash tho and once the world is created it should be fine anyways, so that's why I'll probably release a fix a bit later together with some other things I'm working on already if that's fine.
If the world is pre-generated it does run fine, though it depends on the mod that tries to run after the NPE on a newly generated world, litematica soft crashes the game it seems (stops responding), though I have yet to really test other mods to see the full extent of what's going on.
And don't fret. it's not an issue that's gonna mess with me much and as far as it seems, I'm the only person to have noticed it (or at least reported it).