From ea2037a2616052d55e06bc9cc6924273b28b9f00 Mon Sep 17 00:00:00 2001 From: yueh Date: Fri, 5 Dec 2014 22:17:14 +0100 Subject: [PATCH] Fixed overstocking items with export bus/interface --- src/main/java/appeng/util/inv/AdaptorIInventory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/appeng/util/inv/AdaptorIInventory.java b/src/main/java/appeng/util/inv/AdaptorIInventory.java index b04167de..c718be48 100644 --- a/src/main/java/appeng/util/inv/AdaptorIInventory.java +++ b/src/main/java/appeng/util/inv/AdaptorIInventory.java @@ -280,9 +280,9 @@ public class AdaptorIInventory extends InventoryAdaptor return null; } } - else if ( Platform.isSameItemPrecise( is, left ) && is.stackSize < stackLimit ) + else if ( Platform.isSameItemPrecise( is, left ) && is.stackSize < perOperationLimit ) { - int room = stackLimit - is.stackSize; + int room = perOperationLimit - is.stackSize; int used = Math.min( left.stackSize, room ); if ( modulate )