From f87e7a4ee8db005e294879bfff2f08e0906c3ef1 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Tue, 13 May 2014 23:33:48 -0500 Subject: [PATCH] Fixed Right Click Terminal Slots. --- container/AEBaseContainer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/container/AEBaseContainer.java b/container/AEBaseContainer.java index 41bc5fdd8..ec595a52e 100644 --- a/container/AEBaseContainer.java +++ b/container/AEBaseContainer.java @@ -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 )