The bug
Right clicking a cake which cannot be eaten with an item with a right click action in the main hand will correctly use the item. However, if the cake is clicked with an empty main hand and the same item in the offhand instead, the item's action is not executed. This is inconsistent with all other blocks.
How to reproduce
Place an item with right click ability like a fishing rod in your offhand
Right click a cake with an empty main hand
→ You will notice that the fishing rod is not used
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 (may no longer apply given 19w42a changes)
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float)
return true
if the currently held item is empty.
Related issues
relates to
Attachments
Comments

Cake is MC-106826.

Confirmed for 1.13.1.

Affects 18w47b

Affects 18w49a

Affects 18w50a

@@unknown, you are now the reporter.

Seems a bit differeint in 1.14.3-pre3

This is fixed for cauldrons and fences in 19w42a. If what remains is truly covered by MC-106826 then this could be closed as fixed.

In 1.16.1 and 20w29a
Can confirm in 21w06a.
Can confirm in 21w17a.
Can confirm in 1.17.
Can confirm in 1.17.1.
Can confirm in 1.18.1.
Can confirm in 1.18.2.
Can confirm in 1.19.
Can confirm in 1.19.2.