Fixed fluid autocrafting breaking when using 2 stacks of the same fluid in a pattern.
Cherry picked from 69753592358a0e361a4e392770e12e6d61e1519b
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user