mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-21 19:33:29 +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))
|
if (!(below instanceof BlastFurnaceBlockEntity tile))
|
||||||
return;
|
return;
|
||||||
var input = new SingleRecipeInput(tile.getItem(0));
|
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)
|
if (recipe == null)
|
||||||
return;
|
return;
|
||||||
if (!this.isApplicable(recipe.getIngredients()))
|
if (!this.isApplicable(recipe.value().getIngredients()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var data = BlockEntityFurnaceHeater.getFurnaceData(tile);
|
var data = BlockEntityFurnaceHeater.getFurnaceData(tile);
|
||||||
|
@ -59,7 +59,7 @@ public class BlockEntityBlastFurnaceBooster extends BlockEntityImpl implements I
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (output.isEmpty()) {
|
if (output.isEmpty()) {
|
||||||
var result = recipe.getResultItem(this.level.registryAccess());
|
var result = recipe.value().getResultItem(this.level.registryAccess());
|
||||||
tile.setItem(2, result.copy());
|
tile.setItem(2, result.copy());
|
||||||
} else {
|
} else {
|
||||||
output.grow(1);
|
output.grow(1);
|
||||||
|
|
Loading…
Reference in a new issue