mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-21 11:33:28 +01:00
parent
2c8a615988
commit
a4f9dd0f95
1 changed files with 3 additions and 3 deletions
|
@ -37,10 +37,10 @@ public class BlockEntityBlastFurnaceBooster extends BlockEntityImpl implements I
|
|||
if (!(below instanceof BlastFurnaceBlockEntity tile))
|
||||
return;
|
||||
var input = new SingleRecipeInput(tile.getItem(0));
|
||||
Recipe<?> recipe = this.level.getRecipeManager().getRecipeFor(BlockEntityFurnaceHeater.getRecipeType(tile), input, this.level).orElse(null).value();
|
||||
var recipe = this.level.getRecipeManager().getRecipeFor(BlockEntityFurnaceHeater.getRecipeType(tile), input, this.level).orElse(null);
|
||||
if (recipe == null)
|
||||
return;
|
||||
if (!this.isApplicable(recipe.getIngredients()))
|
||||
if (!this.isApplicable(recipe.value().getIngredients()))
|
||||
return;
|
||||
|
||||
var data = BlockEntityFurnaceHeater.getFurnaceData(tile);
|
||||
|
@ -59,7 +59,7 @@ public class BlockEntityBlastFurnaceBooster extends BlockEntityImpl implements I
|
|||
return;
|
||||
|
||||
if (output.isEmpty()) {
|
||||
var result = recipe.getResultItem(this.level.registryAccess());
|
||||
var result = recipe.value().getResultItem(this.level.registryAccess());
|
||||
tile.setItem(2, result.copy());
|
||||
} else {
|
||||
output.grow(1);
|
||||
|
|
Loading…
Reference in a new issue