Skip to content

Commit

Permalink
fix: cannot insert fluid into sal ammoniac accumulator
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Aug 20, 2024
1 parent 2ffb1d9 commit 3ac5af5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ private Optional<RecipeHolder<AccumulationRecipe>> 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();
}

/**
Expand Down

0 comments on commit 3ac5af5

Please sign in to comment.