diff --git a/src/main/java/appeng/me/storage/CellInventory.java b/src/main/java/appeng/me/storage/CellInventory.java index 194ff64a..9b9eb0bb 100644 --- a/src/main/java/appeng/me/storage/CellInventory.java +++ b/src/main/java/appeng/me/storage/CellInventory.java @@ -481,8 +481,7 @@ public class CellInventory implements ICellInventory if ( request == null ) return null; - ItemStack sharedItem = request.getItemStack(); - int size = sharedItem.stackSize; + long size = Math.min( Integer.MAX_VALUE, request.getStackSize() ); IAEItemStack Results = null;