mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-26 06:53:02 +00:00
Fix another item voiding issue with ExU transfer nodes
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user