From 3ac5af59f37e290b2ce796f84e3cb7a8e6bfd0d4 Mon Sep 17 00:00:00 2001 From: Kli Kli Date: Tue, 20 Aug 2024 15:39:13 +0200 Subject: [PATCH] fix: cannot insert fluid into sal ammoniac accumulator --- .../SalAmmoniacAccumulatorCachedCheck.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/klikli_dev/theurgy/content/apparatus/salammoniacaccumulator/SalAmmoniacAccumulatorCachedCheck.java b/src/main/java/com/klikli_dev/theurgy/content/apparatus/salammoniacaccumulator/SalAmmoniacAccumulatorCachedCheck.java index f100593c..fbfba0af 100644 --- a/src/main/java/com/klikli_dev/theurgy/content/apparatus/salammoniacaccumulator/SalAmmoniacAccumulatorCachedCheck.java +++ b/src/main/java/com/klikli_dev/theurgy/content/apparatus/salammoniacaccumulator/SalAmmoniacAccumulatorCachedCheck.java @@ -50,12 +50,12 @@ private Optional> getRecipeFor(FluidStack stack if (lastRecipe != null) { var recipe = recipeManager.byKeyTyped(this.type, lastRecipe); //test only the fluid without the (separate) solute item ingredient check that the recipe.matches() would. - if (recipe != null && recipe.value().hasEvaporant() && recipe.value().getEvaporant().test(stack)) { + if (recipe != null && recipe.value().hasEvaporant() && recipe.value().getEvaporant().ingredient().test(stack)) { return Optional.of(recipe); } } - return recipeManager.byType(this.type).stream().filter((entry) -> entry.value().hasEvaporant() && entry.value().getEvaporant().test(stack)).findFirst(); + return recipeManager.byType(this.type).stream().filter((entry) -> entry.value().hasEvaporant() && entry.value().getEvaporant().ingredient().test(stack)).findFirst(); } /**