From 7cf5830f8d2bdddc98d5ca327a83e31b8a74bf36 Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Wed, 16 Oct 2019 19:44:36 +0200 Subject: [PATCH] Fix shift clicking in the crafting grid result slot only creating max-1 instead of max --- .../apiimpl/network/grid/CraftingGridBehavior.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/grid/CraftingGridBehavior.java b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/grid/CraftingGridBehavior.java index 642004917..c90b60d14 100644 --- a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/grid/CraftingGridBehavior.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/grid/CraftingGridBehavior.java @@ -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.getCount() <= crafted.getMaxStackSize()); INetwork network = grid.getNetwork();