private boolean func_75230_a(MerchantRecipe par1MerchantRecipe, ItemStack par2ItemStack, ItemStack par3ItemStack)
    {
        ItemStack itemstack = par1MerchantRecipe.func_77394_a();
        ItemStack itemstack1 = par1MerchantRecipe.func_77396_b();

        if (par2ItemStack != null && par2ItemStack.itemID == itemstack.itemID)
        {
            if (itemstack1 != null && par3ItemStack != null && itemstack1.itemID == par3ItemStack.itemID)
            {
                par2ItemStack.stackSize -= itemstack.stackSize;
                par3ItemStack.stackSize -= itemstack1.stackSize;
                return true;
            }

            if (itemstack1 == null && par3ItemStack == null)
            {
                par2ItemStack.stackSize -= itemstack.stackSize;
                return true;
            }
        }

        return false;
    }