Crash on world creation/loading with Collective #30

Open
opened 2026-04-11 22:59:40 +00:00 by jwright159 · 1 comment

Using the 1.21.1 branch of Enchiridion and the library mod Collective.

Using the 1.21.1 branch of Enchiridion and the library mod Collective.
Author

This exception

java.lang.NullPointerException: Cannot invoke "net.minecraft.core.HolderLookup$Provider.lookupOrThrow(net.minecraft.resources.ResourceKey)" because "registries" is null

happens a lot with other mods actually. For this issue, my guess is that the setting of the registries from the server doesn't happen until later. But I'm also getting this issue when loading chunks (usually when piglins spawn), which my guess there is that it tries to get the registries on the worldgen thread, which isn't the same thread as the server, so there's no registries for that thread to get?

This exception ``` java.lang.NullPointerException: Cannot invoke "net.minecraft.core.HolderLookup$Provider.lookupOrThrow(net.minecraft.resources.ResourceKey)" because "registries" is null ``` happens a lot with other mods actually. For this issue, my guess is that the setting of the registries from the server doesn't happen until later. But I'm also getting this issue when loading chunks (usually when piglins spawn), which my guess there is that it tries to get the registries on the worldgen thread, which isn't the same thread as the server, so there's no registries for that thread to get?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Modding/enchiridion#30
No description provided.