Fixes #2626: Subtract the correct amount from the remaining amount.

This commit is contained in:
yueh 2016-11-15 22:14:17 +01:00
parent 6c91e852ec
commit 3eae4a7d19

View file

@ -149,7 +149,7 @@ class ItemHandlerAdapter implements IMEInventory<IAEItemStack>, IBaseMonitor<IAE
} }
while( extracted != null && remainingCurrentSlot > 0 ); while( extracted != null && remainingCurrentSlot > 0 );
remainingSize -= remainingCurrentSlot; remainingSize -= stackInInventorySlot.stackSize - remainingCurrentSlot;
// Done? // Done?
if( remainingSize <= 0 ) if( remainingSize <= 0 )