FIx REI Compat for 1.15 snapshots (#1888)

This commit is contained in:
shedaniel 2019-11-16 01:17:06 +08:00 committed by modmuss50
parent f9b9279500
commit 16fe02f359
4 changed files with 62 additions and 69 deletions

View file

@ -49,7 +49,7 @@ public class MachineRecipeDisplay<R extends RebornRecipe> implements RecipeDispl
public MachineRecipeDisplay(R recipe) {
this.recipe = recipe;
this.inputs = CollectionUtils.map(recipe.getRebornIngredients(), ing -> CollectionUtils.map(ing.getPreviewStacks(), EntryStack::create));
this.outputs = CollectionUtils.map(recipe.getOutputs(), stack -> EntryStack.create(stack));
this.outputs = CollectionUtils.map(recipe.getOutputs(), EntryStack::create);
this.energy = recipe.getPower();
if (recipe instanceof BlastFurnaceRecipe) {
this.heat = ((BlastFurnaceRecipe) recipe).getHeat();