From cd3e063fca9b082ecaf381dfbe06eb3e840316f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salom=C3=A3o?= Date: Wed, 31 Mar 2021 15:52:23 -0300 Subject: [PATCH] reverted change due to NPE --- .../multi/electric/MetaTileEntityMultiFurnace.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityMultiFurnace.java b/src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityMultiFurnace.java index 142402421b..0ef763e229 100644 --- a/src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityMultiFurnace.java +++ b/src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityMultiFurnace.java @@ -97,6 +97,7 @@ protected void trySearchNewRecipe() { long maxVoltage = getMaxVoltage(); Recipe currentRecipe = null; IItemHandlerModifiable importInventory = getInputInventory(); + IMultipleTankHandler importFluids = getInputTank(); //inverse of logic in normal AbstractRecipeLogic //for MultiSmelter, we can reuse previous recipe if inputs didn't change @@ -105,8 +106,8 @@ protected void trySearchNewRecipe() { if (metaTileEntity.isInputsDirty()) { metaTileEntity.setInputsDirty(false); //Inputs changed, try searching new recipe for given inputs - currentRecipe = findRecipe(maxVoltage, importInventory, null); - } else if (previousRecipe != null && previousRecipe.matches(false, importInventory, null)) { + currentRecipe = findRecipe(maxVoltage, importInventory, importFluids); + } else if (previousRecipe != null && previousRecipe.matches(false, importInventory, importFluids)) { //if previous recipe still matches inputs, try to use it currentRecipe = previousRecipe; }