Fixed overstocking items with export bus/interface

This commit is contained in:
yueh 2014-12-05 22:17:14 +01:00
parent d54cf458b6
commit ea2037a261

View file

@ -280,9 +280,9 @@ public class AdaptorIInventory extends InventoryAdaptor
return null; return null;
} }
} }
else if ( Platform.isSameItemPrecise( is, left ) && is.stackSize < stackLimit ) else if ( Platform.isSameItemPrecise( is, left ) && is.stackSize < perOperationLimit )
{ {
int room = stackLimit - is.stackSize; int room = perOperationLimit - is.stackSize;
int used = Math.min( left.stackSize, room ); int used = Math.min( left.stackSize, room );
if ( modulate ) if ( modulate )