public void onPickupFromSlot(ItemStack par1ItemStack)
    {
        func_75208_c(par1ItemStack);
        MerchantRecipe merchantrecipe = field_75233_a.func_70468_h();

        if (merchantrecipe != null)
        {
            ItemStack itemstack = field_75233_a.getStackInSlot(0);
            ItemStack itemstack1 = field_75233_a.getStackInSlot(1);

            if (func_75230_a(merchantrecipe, itemstack, itemstack1) || func_75230_a(merchantrecipe, itemstack1, itemstack))
            {
                if (itemstack != null && itemstack.stackSize <= 0)
                {
                    itemstack = null;
                }

                if (itemstack1 != null && itemstack1.stackSize <= 0)
                {
                    itemstack1 = null;
                }

                field_75233_a.setInventorySlotContents(0, itemstack);
                field_75233_a.setInventorySlotContents(1, itemstack1);
                field_75234_h.func_70933_a(merchantrecipe);
            }
        }
    }