Just use amountCrafted

This commit is contained in:
raoulvdberge
2019-10-16 22:20:50 +02:00
parent 7cf5830f8d
commit d6f257401f

View File

@@ -80,7 +80,7 @@ public class CraftingGridBehavior implements ICraftingGridBehavior {
craftedItemsList.add(crafted.copy());
amountCrafted += crafted.getCount();
} while (API.instance().getComparer().isEqual(crafted, grid.getCraftingResult().getStackInSlot(0)) && amountCrafted + crafted.getCount() <= crafted.getMaxStackSize());
} while (API.instance().getComparer().isEqual(crafted, grid.getCraftingResult().getStackInSlot(0)) && amountCrafted < crafted.getMaxStackSize());
INetwork network = grid.getNetwork();