Skip to content

Commit

Permalink
Fixed refinery caching invalid recipes
Browse files Browse the repository at this point in the history
Cached recipe depends on both the input fluid *and*
  the current number of refinery outputs

#1332
  • Loading branch information
desht committed Aug 27, 2024
1 parent 0461bbc commit c7474a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public void decPlayersUsing() {
}

private int genIngredientHash() {
return FluidStack.hashFluidAndComponents(getInputTank().getFluid());
return Objects.hash(FluidStack.hashFluidAndComponents(getInputTank().getFluid()), outputCount);
}

private class RefineryInputTank extends SmartSyncTank {
Expand Down

0 comments on commit c7474a5

Please sign in to comment.