Fix recipe outputs display in REI. Closes #2417

This commit is contained in:
drcrazy 2021-07-03 01:11:18 +03:00
parent 399f267b43
commit 5eef35551a
2 changed files with 3 additions and 3 deletions

View file

@ -143,7 +143,7 @@ dependencies {
api project(":RebornCore")
include project(":RebornCore")
optionalDependency "me.shedaniel:RoughlyEnoughItems-fabric:6.0.251-alpha"
optionalDependency "me.shedaniel:RoughlyEnoughItems-fabric:6.0.262-alpha"
disabledOptionalDependency ('com.github.emilyploszaj:trinkets:2.6.7')
disabledOptionalDependency "com.github.dexman545:autoswitch-api:-SNAPSHOT"
}

View file

@ -35,9 +35,9 @@ import reborncore.common.crafting.RebornRecipe;
import reborncore.common.fluid.container.FluidInstance;
import techreborn.api.recipe.recipes.BlastFurnaceRecipe;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
public class MachineRecipeDisplay<R extends RebornRecipe> implements Display {
@ -52,7 +52,7 @@ public class MachineRecipeDisplay<R extends RebornRecipe> implements Display {
public MachineRecipeDisplay(R recipe) {
this.recipe = recipe;
this.inputs = CollectionUtils.map(recipe.getRebornIngredients(), ing -> EntryIngredients.ofItemStacks(ing.getPreviewStacks()));
this.outputs = Collections.singletonList(EntryIngredients.ofItemStacks(recipe.getOutputs()));
this.outputs = recipe.getOutputs().stream().map(EntryIngredients::of).collect(Collectors.toList());
this.time = recipe.getTime();
this.energy = recipe.getPower();
if (recipe instanceof BlastFurnaceRecipe) {