Skip to content

Commit

Permalink
Try to fix #703
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxNeedsSnacks committed Sep 11, 2023
1 parent e435e42 commit a468b94
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public void groupFluidsByTag(ResourceLocation groupId, Component description, Re
}

// predicate-based grouping, again with shortcuts for builtin entry types
public void groupItemsIf(ResourceLocation groupId, Component description, Ingredient predicate) {
// Ingredient is already a predicate for ItemStack, so just use testVanilla
public void groupItemsIf(ResourceLocation groupId, Component description, Predicate<ItemStack> predicate) {
registry.group(groupId, description, VanillaEntryTypes.ITEM, (item) -> predicate.test(item.getValue()));
}

Expand Down

0 comments on commit a468b94

Please sign in to comment.