[Bug] 1.21 Fabric ItemGroupEvents.modifyEntriesEvent is fired with the static registry lookup. #1665
Closed
3 of 7 tasks
Labels
bug
Something isn't working
env: fabric
This issue involves Fabric
priority: high
This needs to be worked on and reviewed ASAP
What happened?
Fabric's
ItemGroupEvents.modifyEntriesEvent
is fired with the static registry lookup, this breaks any mod that tries to query something from a dynamic registry for its item groups, including a vanilla one.The issue comes from here here: https://github.com/shedaniel/RoughlyEnoughItems/blob/16.x-1.21/fabric/src/main/java/me/shedaniel/rei/impl/client/fabric/CreativeModeTabCollectorImpl.java#L47 where it only uses the builtin registries.
(In yarn names):
DynamicRegistryManager.of(Registries.REGISTRIES)
only provides a wrapper lookup to the static builtin registries, this breaks mods such as TechReborn here. I think this code should ideally use the staticdisplayContext
fromItemGroups
, or the DRM.Tested with REI 16.0.729
What mod loaders are you seeing the problem on?
Fabric
What do you think this bug is of?
Relevant log output
Anything else?
No response
By submitting this issue, I have included the necessary logs by pasting the contents into the correct location or attaching the file as an upload.
By submitting this issue, I have confirmed my REI and REI's dependencies are up to date.
The text was updated successfully, but these errors were encountered: