aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java
diff options
context:
space:
mode:
authorSebastian Hartte <sebastian@hartte.de>2020-07-12 23:30:27 +0200
committerSebastian Hartte <sebastian@hartte.de>2020-07-12 23:36:38 +0200
commit3de9a6a1b94b1fcbc188aed879e381b937cfe65c (patch)
tree9ecb8ad8e20786ebf69b547577a744645d71100e /src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java
parent627b2524ee1111a020a38928818858cd8f1bd804 (diff)
downloadRoughlyEnoughItems-3de9a6a1b94b1fcbc188aed879e381b937cfe65c.tar.gz
RoughlyEnoughItems-3de9a6a1b94b1fcbc188aed879e381b937cfe65c.tar.bz2
RoughlyEnoughItems-3de9a6a1b94b1fcbc188aed879e381b937cfe65c.zip
Adds convenience methods to convert from Ingredient and Lists of ItemStacks directly to equivalent EntryStacks.
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java b/src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java
index 02f5e57eb..5a501d9c9 100644
--- a/src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java
+++ b/src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java
@@ -56,7 +56,7 @@ public abstract class DefaultCookingDisplay implements TransferRecipeDisplay {
public DefaultCookingDisplay(AbstractCookingRecipe recipe) {
this.recipe = recipe;
- this.input = CollectionUtils.map(recipe.getPreviewInputs(), i -> CollectionUtils.map(i.getMatchingStacksClient(), EntryStack::create));
+ this.input = EntryStack.create(recipe.getPreviewInputs());
this.output = Collections.singletonList(EntryStack.create(recipe.getOutput()));
this.xp = recipe.getExperience();
this.cookTime = recipe.getCookTime();