Fixes #2626: Subtract the correct amount from the remaining amount.
This commit is contained in:
@@ -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 )
|
||||||
|
|||||||
Reference in New Issue
Block a user