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

Items of replaceable blocks appear to successfully replace the same block in the world even though they do not

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.2
    • Fix Version/s: Minecraft 18w03b
    • Confirmation Status:
      Confirmed

      Description

      The bug

      Items of replaceable blocks like grass (tallgrass) or snow layers act like you successfully placed them when you right click the block in the world, even though they were not placed.

      Note: This does not happen with double plants because they require a block of air above.

      How to reproduce

      1. Place a replaceable block, like for example grass (tallgrass)
      2. Right click on the grass (tallgrass) block while holding grass (tallgrass)
        → Your arms swings indicating that you successfully placed the block even though you did not

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The method net.minecraft.item.ItemBlock.onItemUse(EntityPlayer, World, BlockPos, EnumHand, EnumFacing, float, float, float) returns that the item was successfully used even though it was not successfully placed in the world and therefor not used.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcono1234 [Mod] Marcono1234
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: