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

Right-clicking creeper with flint and steel uses item in off-hand as well

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 1.11.2, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 18w02a, Minecraft 18w05a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a
    • 19w37a
    • Confirmed
    • (Unassigned)

    Description

      The bug

      When holding a flint and steel in your main-hand and another item with a right click action in your off-hand, both items will be used when right clicking a creeper to ignite it.

      How to reproduce

      1. Spawn a creeper
      2. Put flint and steel in your main-hand and another item with a right click action in your off-hand
      3. Right-click the creeper
      4. Note that the creeper was ignited but the item in your off-hand was used as well

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      For the client the method net.minecraft.entity.monster.EntityCreeper.processInteract(EntityPlayer, EnumHand) does not return when you right click a creeper with a flint and steel. Therefor it tries to use the item in the offhand instead.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Aaron1011 Aaron Hill
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: