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

Unable to place blocks on fences from off-hand

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 15w31b, Minecraft 15w31c, Minecraft 15w32c, Minecraft 15w33b, Minecraft 15w33c, Minecraft 15w44b, Minecraft 15w49b, Minecraft 16w03a, Minecraft 1.9.2, Minecraft 16w15b, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10 Pre-Release 1, Minecraft 1.10.2, Minecraft 16w39a, Minecraft 16w42a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w13b, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2
    • Fix Version/s: Minecraft 16w39c
    • Labels:
    • Confirmation Status:
      Confirmed

      Description

      The bug

      Blocks cannot be placed on fences with the off-hand.

      How to reproduce

      1. Hold torch in offhand
      2. Right click on top of a fence
      3. You can't place it

      Code analysis

      The method net.minecraft.block.BlockFence.onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) returns true if your mainhand is empty or holding a lead. This is also the reason for MC-21433. Since the method returns true when there's nothing in your mainhand, the offhand is ignored.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rvaboy076 Rutger van aert
              • Votes:
                19 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: