Fixes #2626: Subtract the correct amount from the remaining amount.
This commit is contained in:
parent
6c91e852ec
commit
3eae4a7d19
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue