Skip to content

Commit

Permalink
[CR] Ensure that we show present fluid even if un-runnable
Browse files Browse the repository at this point in the history
  • Loading branch information
josiah-roberts committed Dec 29, 2023
1 parent 1faffbc commit b19a2a9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public FluidStack getInputFluidStack() {
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());

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

0 comments on commit b19a2a9

Please sign in to comment.