From effc5571baf1e2184ffba81fc7cc7beca7bcec1b Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Thu, 29 Aug 2024 23:19:11 +0900 Subject: [PATCH] another one... --- .../fabric/api/datagen/v1/provider/FabricLanguageProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricLanguageProvider.java b/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricLanguageProvider.java index 30d896f57c..19ac297c30 100644 --- a/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricLanguageProvider.java +++ b/fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/provider/FabricLanguageProvider.java @@ -159,7 +159,7 @@ default void add(Block block, String value) { * @param value The value of the entry. */ default void add(RegistryKey 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) {