From a4f9dd0f95ba5bb699c220834299a00a172e00de Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 20 Nov 2024 21:28:25 +0100 Subject: [PATCH] fixed a blast furnace booster crash closes #373 --- .../blocks/tiles/BlockEntityBlastFurnaceBooster.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/BlockEntityBlastFurnaceBooster.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/BlockEntityBlastFurnaceBooster.java index 019d2238..67fa84a7 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/BlockEntityBlastFurnaceBooster.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/BlockEntityBlastFurnaceBooster.java @@ -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);