From 3de9a6a1b94b1fcbc188aed879e381b937cfe65c Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Sun, 12 Jul 2020 23:30:27 +0200 Subject: Adds convenience methods to convert from Ingredient and Lists of ItemStacks directly to equivalent EntryStacks. --- .../java/me/shedaniel/rei/plugin/smithing/DefaultSmithingDisplay.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/plugin/smithing/DefaultSmithingDisplay.java') diff --git a/src/main/java/me/shedaniel/rei/plugin/smithing/DefaultSmithingDisplay.java b/src/main/java/me/shedaniel/rei/plugin/smithing/DefaultSmithingDisplay.java index 7b7f0d4f5..05b5bbc87 100644 --- a/src/main/java/me/shedaniel/rei/plugin/smithing/DefaultSmithingDisplay.java +++ b/src/main/java/me/shedaniel/rei/plugin/smithing/DefaultSmithingDisplay.java @@ -48,8 +48,8 @@ public class DefaultSmithingDisplay implements RecipeDisplay { public DefaultSmithingDisplay(@NotNull SmithingRecipe recipe) { this( Lists.newArrayList( - CollectionUtils.map(recipe.base.getMatchingStacksClient(), EntryStack::create), - CollectionUtils.map(recipe.addition.getMatchingStacksClient(), EntryStack::create) + EntryStack.create(recipe.base), + EntryStack.create(recipe.addition) ), Collections.singletonList(EntryStack.create(recipe.getOutput())), recipe.getId() -- cgit