if (l <= par1ItemStack.getMaxStackSize())
{
if (ss instanceof SlotBauble) unequipBauble(par1ItemStack);
par1ItemStack.stackSize = 0;
itemstack1.stackSize = l;
slot.onSlotChanged();
flag1 = true;
}
else if (itemstack1.stackSize < par1ItemStack.getMaxStackSize())
{
if (ss instanceof SlotBauble) unequipBauble(par1ItemStack);