Merge pull request #553 from yueh/fix-547

Fixed overstocking items with export bus/interface #547
This commit is contained in:
yueh 2014-12-05 23:55:42 +01:00
commit f914d45711

View file

@ -280,9 +280,9 @@ public class AdaptorIInventory extends InventoryAdaptor
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 );
if ( modulate )