Refactor machine ingredients

This commit is contained in:
modmuss50 2019-07-28 14:50:06 +01:00
parent a7de6b428a
commit 0118d5a999
3 changed files with 10 additions and 10 deletions

View file

@ -3,7 +3,7 @@ package techreborn.rei;
import me.shedaniel.rei.api.RecipeDisplay;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Identifier;
import reborncore.common.crafting.RebornIngredient;
import reborncore.common.crafting.ingredient.RebornIngredient;
import reborncore.common.crafting.RebornRecipe;
import java.util.List;
@ -18,7 +18,7 @@ public class MachineRecipeDisplay<R extends RebornRecipe> implements RecipeDispl
public MachineRecipeDisplay(R recipe) {
this.recipe = recipe;
this.inputs = recipe.getRebornIngredients().stream().map(RebornIngredient::getStacks).collect(Collectors.toList());
this.inputs = recipe.getRebornIngredients().stream().map(RebornIngredient::getPreviewStacks).collect(Collectors.toList());
this.outputs = recipe.getOutputs();
}