Fix another item voiding issue with ExU transfer nodes

This commit is contained in:
Justin Aquadro committed 2015-06-24 23:29:45 -04:00
1 parent ccefe03ca5
commit 6a62ceefc7
1 file changed
+3 -8
@@ -154,14 +154,9 @@ public class StorageInventory implements IDrawerInventory
IInventoryAdapter adapter = (IInventoryAdapter)drawer;
adapter.syncInventory();
ItemStack stack = drawer.getStoredItemCopy();
if (stack.stackSize <= count) {
drawer.setStoredItemCount(0);
}
else {
stack.stackSize = count;
drawer.setStoredItemCount(drawer.getStoredItemCount() - count);
}
ItemStack stack = adapter.getInventoryStack(SlotType.OUTPUT).copy();
stack.stackSize = Math.min(stack.stackSize, drawer.getStoredItemCount());
adapter.getInventoryStack(SlotType.OUTPUT).stackSize -= stack.stackSize;
return stack;
}