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. --- .../me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java') diff --git a/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java b/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java index 292a7c3db..2510336ba 100644 --- a/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java +++ b/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java @@ -43,13 +43,7 @@ public class DefaultShapedDisplay implements DefaultCraftingDisplay { public DefaultShapedDisplay(ShapedRecipe recipe) { this.display = recipe; - this.input = recipe.getPreviewInputs().stream().map(i -> { - List entries = new ArrayList<>(); - for (ItemStack stack : i.getMatchingStacksClient()) { - entries.add(EntryStack.create(stack)); - } - return entries; - }).collect(Collectors.toList()); + this.input = EntryStack.create(recipe.getPreviewInputs()); this.output = Collections.singletonList(EntryStack.create(recipe.getOutput())); } -- cgit