Skip to content

Commit

Permalink
another one...
Browse files Browse the repository at this point in the history
  • Loading branch information
apple502j committed Aug 29, 2024
1 parent ea744c6 commit effc557
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ default void add(Block block, String value) {
* @param value The value of the entry.
*/
default void add(RegistryKey<ItemGroup> registryKey, String value) {
final ItemGroup group = Registries.ITEM_GROUP.getOrThrow(registryKey);
final ItemGroup group = Registries.ITEM_GROUP.getValueOrThrow(registryKey);
final TextContent content = group.getDisplayName().getContent();

if (content instanceof TranslatableTextContent translatableTextContent) {
Expand Down

0 comments on commit effc557

Please sign in to comment.