aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/smithing/DefaultSmithingDisplay.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/smithing/DefaultSmithingDisplay.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/smithing/DefaultSmithingDisplay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/smithing/DefaultSmithingDisplay.java4
1 files changed, 2 insertions, 2 deletions
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()