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
1 changed files with 1 additions and 1 deletions

View File

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