Skip to content

Commit

Permalink
Fix registration on Fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Oct 29, 2024
1 parent f90908f commit e6fe784
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private static void postRegisterEvents()
{
ResourceKey<? extends Registry<?>> registryKey = ResourceKey.createRegistryKey(registryName);
BuiltInRegistries.REGISTRY.get(registryName).ifPresent(registry -> {
EventManager.fire(new RegistryEvent(registryKey, (location, value) -> Registry.register((Registry<? super Object>)registry, location, value)));
EventManager.fire(new RegistryEvent(registryKey, (location, value) -> Registry.register((Registry<? super Object>)registry.value(), location, value)));
});
}
}
Expand Down

0 comments on commit e6fe784

Please sign in to comment.