Fix shift clicking in the crafting grid result slot only creating max-1 instead of max

This commit is contained in:
raoulvdberge
2019-10-16 19:44:36 +02:00
parent 46bcea920c
commit 7cf5830f8d

View File

@@ -80,7 +80,7 @@ public class CraftingGridBehavior implements ICraftingGridBehavior {
craftedItemsList.add(crafted.copy()); craftedItemsList.add(crafted.copy());
amountCrafted += crafted.getCount(); 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.getCount() <= crafted.getMaxStackSize());
INetwork network = grid.getNetwork(); INetwork network = grid.getNetwork();