Fix recipe outputs display in REI. Closes #2417
This commit is contained in:
parent
399f267b43
commit
5eef35551a
2 changed files with 3 additions and 3 deletions
|
@ -143,7 +143,7 @@ dependencies {
|
||||||
api project(":RebornCore")
|
api project(":RebornCore")
|
||||||
include 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.emilyploszaj:trinkets:2.6.7')
|
||||||
disabledOptionalDependency "com.github.dexman545:autoswitch-api:-SNAPSHOT"
|
disabledOptionalDependency "com.github.dexman545:autoswitch-api:-SNAPSHOT"
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,9 +35,9 @@ import reborncore.common.crafting.RebornRecipe;
|
||||||
import reborncore.common.fluid.container.FluidInstance;
|
import reborncore.common.fluid.container.FluidInstance;
|
||||||
import techreborn.api.recipe.recipes.BlastFurnaceRecipe;
|
import techreborn.api.recipe.recipes.BlastFurnaceRecipe;
|
||||||
|
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
public class MachineRecipeDisplay<R extends RebornRecipe> implements Display {
|
public class MachineRecipeDisplay<R extends RebornRecipe> implements Display {
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ public class MachineRecipeDisplay<R extends RebornRecipe> implements Display {
|
||||||
public MachineRecipeDisplay(R recipe) {
|
public MachineRecipeDisplay(R recipe) {
|
||||||
this.recipe = recipe;
|
this.recipe = recipe;
|
||||||
this.inputs = CollectionUtils.map(recipe.getRebornIngredients(), ing -> EntryIngredients.ofItemStacks(ing.getPreviewStacks()));
|
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.time = recipe.getTime();
|
||||||
this.energy = recipe.getPower();
|
this.energy = recipe.getPower();
|
||||||
if (recipe instanceof BlastFurnaceRecipe) {
|
if (recipe instanceof BlastFurnaceRecipe) {
|
||||||
|
|
Loading…
Reference in a new issue