diff options
| author | Sebastian Hartte <sebastian@hartte.de> | 2020-07-12 23:30:27 +0200 |
|---|---|---|
| committer | Sebastian Hartte <sebastian@hartte.de> | 2020-07-12 23:36:38 +0200 |
| commit | 3de9a6a1b94b1fcbc188aed879e381b937cfe65c (patch) | |
| tree | 9ecb8ad8e20786ebf69b547577a744645d71100e /src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java | |
| parent | 627b2524ee1111a020a38928818858cd8f1bd804 (diff) | |
| download | RoughlyEnoughItems-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.java | 2 |
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(); |
