Fixed inventory slots being reused incorrectly in rare cases in the JEI transfer handler. Fixes #3431

This commit is contained in:
raoulvdberge
2022-12-20 14:32:47 +01:00
parent 9825c77072
commit 0f9d6e8c84
2 changed files with 2 additions and 1 deletions

View File

@@ -205,7 +205,7 @@ public class IngredientTracker {
int amount = Math.min(ingredient.getMissingAmount(), used == null ? stackInSlot.getCount() : stackInSlot.getCount() - used);
if (amount > 0) {
ingredient.fulfill(amount);
usedMatrixStacks.put(slot, amount);
usedMatrixStacks.put(slot, used == null ? amount : used + amount);
}
return ingredient.isAvailable();
}