Skip to content

Commit

Permalink
Do not ever filter getInputFluidStack by parallel in the null case
Browse files Browse the repository at this point in the history
  • Loading branch information
josiah-roberts committed Dec 29, 2023
1 parent b19a2a9 commit cef1e27
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ protected void updateRecipeProgress() {
public FluidStack getInputFluidStack() {
// Previous Recipe is always null on first world load, so try to acquire a new recipe
if (previousRecipe == null) {
Recipe recipe = findRecipe(Integer.MAX_VALUE, getInputInventory(), getInputTank());

// If there is no runnable recipe, attempt to show a candidate recipe fluid stack
recipe = recipe != null ? recipe : super.findRecipe(Integer.MAX_VALUE, getInputInventory(), getInputTank());
// previousRecipe is set whenever a valid recipe is found
// if it's not set, find *any* recipe we have at least the base (non-parallel) inputs for
Recipe recipe = super.findRecipe(Integer.MAX_VALUE, getInputInventory(), getInputTank());

return recipe == null ? null : getInputTank().drain(
new FluidStack(recipe.getFluidInputs().get(0).getInputFluidStack().getFluid(), Integer.MAX_VALUE),
Expand Down

0 comments on commit cef1e27

Please sign in to comment.