The bug
Blocks cannot be placed on fences with the off-hand.
How to reproduce
Hold torch in offhand
Right click on top of a fence
You can't place it
Code analysis
The method net.minecraft.block.BlockFence.onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
returns true
if your mainhand is empty or holding a lead. This is also the reason for MC-21433. Since the method returns true
when there's nothing in your mainhand, the offhand is ignored.
Related issues
is duplicated by
relates to
Attachments
Comments


Likely caused by fences having a right click action (for leashes).
Confirmed for 16w03a
It affects all blocks.

Confirmed for
16w15b
When you hold SHIFT you are able to place the block, however for the mainhand this is not the case, see MC-93651

Same reason as for MC-93651
The client thinks it interacted with its mainhand with the fence, and because of this does not try to use the offhand.
Confirmed for 1.9.4
Confirmed for 16w20a

Confirmed for 1.10-pre1

Confirmed for 1.10.2, Java version.

Looks like it is fixed in 16w39c probably because MC-93651 was fixed

This is not fixed for me in 16w42a.

Confirmed for 1.11
Confirmed for 17w13b

Confirmed for 17w16b

Confirmed for 17w18b

Confirmed for 1.12-pre1

Confirmed for 1.12.2
Confirmed for 17w45b
Confirmed for 18w07a
Confirmed for 18w11a
Fixed in 18w20c, you can shift right click and place blocks on the fence.
Not fixed, that's the way it's always been.
Confirmed for 18w22c
Confirmed for 1.13-pre2

Confirmed in 1.13.2

Confirmed for 18w48a

Confirmed for 18w48b

Confirmed for 18w49a

Confirmed for 18w50a

Confirmed for 19w02a

Confirmed for 19w03a

Confirmed for 19w03b

Confirmed for 19w03c

Comfirmed for 19w04a

Confirmed for 19w05a

Confirmed for 19w06a

Confirmed for 19w07a

Confirmed for 19w09a

Confirmed for 19w11a

Confirmed for 19w11b

Confirmed for 19w12a

Confirmed for 19w12b

Confirmed for 19w13a

Confirmed for 19w13b

Confirmed for 19w14a

Confirmed for 1.14 pre-1

Confirmed for 1.14 pre-2

Confirmed for 1.14 pre-3

Confirmed for 1.14 pre-4

Confirmed for 1.14 pre-5

Confirmed for 1.14

Confirmed for 1.14.1 pre-1

Confirmed for 1.14.1 pre-2

Confirmed for 1.14.1

Cannot reproduce in 19w42a, probably fixed

Confirmed fixed in 19w42a