diff --git a/fabric-item-group-api-v1/src/client/java/net/fabricmc/fabric/impl/client/itemgroup/FabricCreativeGuiComponents.java b/fabric-item-group-api-v1/src/client/java/net/fabricmc/fabric/impl/client/itemgroup/FabricCreativeGuiComponents.java index 63903e3a00..9c63eb652d 100644 --- a/fabric-item-group-api-v1/src/client/java/net/fabricmc/fabric/impl/client/itemgroup/FabricCreativeGuiComponents.java +++ b/fabric-item-group-api-v1/src/client/java/net/fabricmc/fabric/impl/client/itemgroup/FabricCreativeGuiComponents.java @@ -38,7 +38,7 @@ public class FabricCreativeGuiComponents { private static final Identifier BUTTON_TEX = Identifier.of("fabric", "textures/gui/creative_buttons.png"); private static final double TABS_PER_PAGE = FabricItemGroupImpl.TABS_PER_PAGE; public static final Set COMMON_GROUPS = Set.of(ItemGroups.SEARCH, ItemGroups.INVENTORY, ItemGroups.HOTBAR).stream() - .map(Registries.ITEM_GROUP::getOrThrow) + .map(Registries.ITEM_GROUP::getValueOrThrow) .collect(Collectors.toSet()); public static int getPageCount() {