Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-112994

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 19w42a
    • Minecraft 1.11.2, Minecraft 1.12 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a
    • Confirmed
    • (Unassigned)

      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.

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: