mojira.dev
MC-112994

Interacting with shears on a snow golem always uses item in off-hand as well

The bug

When you right click a snow golem (or snowman) wearing a pumpkin with shears while you have another item with right click ability in your offhand, the item in your offhand is used as well.

How to reproduce

  1. Spawn a snow golem with pumpkin

  2. Put shears in your mainhand and an item with right click ability in your offhand, for example a fishing rod

  3. Right click the snow golem
    → You will see that the snow golem was sheared but you also used the item in your offhand

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The method net.minecraft.entity.monster.EntitySnowman.processInteract(EntityPlayer, EnumHand) does not return true when the snow golem was sheared.

Linked issues

Comments 2

Confirmed for 1.12-pre1

Fixed as of 1.15pre1, was probably fixed in the same snapshot that gave shears an animation.

marcono1234

(Unassigned)

Confirmed

(Unassigned)

interact, item, off-hand, shears, snow_golem

Minecraft 1.11.2, Minecraft 1.12 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, ..., Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a

19w42a

Retrieved