Fixed fluid autocrafting breaking when using 2 stacks of the same fluid in a pattern.

Cherry picked from 69753592358a0e361a4e392770e12e6d61e1519b
This commit is contained in:
Darkere
2022-01-22 17:29:28 +01:00
committed by raoulvdberge
parent e53ad61d59
commit 2ff06d379e
2 changed files with 2 additions and 1 deletions

View File

@@ -257,7 +257,7 @@ public class CraftingCalculator {
FluidStack fromSelf = fluidResults.get(possibleInput, IComparer.COMPARE_NBT);
FluidStack fromNetwork = fluidStorageSource.get(possibleInput, IComparer.COMPARE_NBT);
int remaining = possibleInput.getAmount() * qty;
int remaining = ingredient.getCount() * qty;
if (remaining < 0) { // int overflow
throw new CraftingCalculatorException(CalculationResultType.TOO_COMPLEX);