From adf076303008759dd8b2581682ae2e43166d6f14 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Mon, 29 Jul 2024 17:44:35 +0200 Subject: [PATCH] Make blood infuser recipe matching more accurate Related to CyclopsMC/IntegratedDynamics#1369 --- .../evilcraft/core/recipe/type/RecipeBloodInfuser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/cyclops/evilcraft/core/recipe/type/RecipeBloodInfuser.java b/src/main/java/org/cyclops/evilcraft/core/recipe/type/RecipeBloodInfuser.java index dd4078cf63..063772992e 100644 --- a/src/main/java/org/cyclops/evilcraft/core/recipe/type/RecipeBloodInfuser.java +++ b/src/main/java/org/cyclops/evilcraft/core/recipe/type/RecipeBloodInfuser.java @@ -68,9 +68,9 @@ public Optional getXp() { @Override public boolean matches(IInventoryFluidTier inv, Level worldIn) { return this.getInputTier().map(t -> t <= inv.getTier()).orElse(true) - && inputIngredient.map(p -> p.test(inv.getItem(0))).orElse(true) - && inputFluid.map(f -> f.getFluid() == inv.getFluidHandler().getFluidInTank(0).getFluid()).orElse(true) - && inputFluid.map(f -> f.getAmount() <= inv.getFluidHandler().getFluidInTank(0).getAmount()).orElse(true); + && inputIngredient.map(p -> p.test(inv.getItem(0))).orElse(inv.getItem(0).isEmpty()) + && inputFluid.map(f -> f.getFluid() == inv.getFluidHandler().getFluidInTank(0).getFluid()).orElse(inv.getFluidHandler().getFluidInTank(0).isEmpty()) + && inputFluid.map(f -> f.getAmount() <= inv.getFluidHandler().getFluidInTank(0).getAmount()).orElse(inv.getFluidHandler().getFluidInTank(0).isEmpty()); } @Override