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

Carrot on a stick acts client-side always as if it was not successfully used

XMLWordPrintable

    • Confirmed
    • (Unassigned)

      The bug

      When using a carrot on a stick while riding a pig the carrot on a stick always acts as if it was not successfully used client-side. This means that if you hold an item in your offhand, that item will be used as well.

      How to reproduce

      1. Spawn a pig and give it a saddle
      2. Mount it, put a carrot on a stick in your mainhand and another item with right click ability in your offhand, for example a fishing rod
      3. Right click with the carrot on a stick
        → You will see that the fishing rod was used as well

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The method net.minecraft.item.ItemCarrotOnAStick.onItemRightClick(World, EntityPlayer, EnumHand) always returns EnumActionResult.PASS client-side.

            Unassigned Unassigned
            marcono1234 [Mod] Marcono1234
            Votes:
            7 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: