itemstack5 = slot2.getStack();
inventoryplayer.setInventorySlotContents(par2, itemstack5.copy());
if((slot2.inventory != inventoryplayer || !slot2.isItemValid(itemstack3)) && itemstack3 != null) {
if(l1 > -1) {
inventoryplayer.addItemStackToInventory(itemstack3);
slot2.decrStackSize(itemstack5.stackSize);
slot2.putStack((ItemStack)null);
slot2.onPickupFromSlot(par4EntityPlayer, itemstack5);
}
} else {