Fix shift clicking in the crafting grid result slot only creating max-1 instead of max
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user