Fixed Right Click Terminal Slots.

This commit is contained in:
AlgorithmX2 2014-05-13 23:33:48 -05:00
parent 974a41eabb
commit f87e7a4ee8

View file

@ -806,7 +806,10 @@ public abstract class AEBaseContainer extends Container
if ( slotItem != null )
{
IAEItemStack ais = slotItem.copy();
long stackSize = Math.min( ais.getItemStack().getMaxStackSize(), ais.getStackSize() );
long maxSize = ais.getItemStack().getMaxStackSize();
ais.setStackSize( maxSize );
ais = cellInv.extractItems( ais, Actionable.SIMULATE, mySrc );
long stackSize = Math.min( maxSize, ais.getStackSize() );
ais.setStackSize( (stackSize + 1) >> 1 );
ais = Platform.poweredExtraction( powerSrc, cellInv, ais, mySrc );
if ( ais != null )