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

Unable to place blocks on fences from off-hand

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • 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, Minecraft 17w45b, Minecraft 18w07a, Minecraft 18w11a, Minecraft 18w20c, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre5, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w47b, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 19w03c, Minecraft 19w04a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 1, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3 Pre-Release 4, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 1, Minecraft 1.14.4 Pre-Release 2, Minecraft 1.14.4 Pre-Release 3, Minecraft 1.14.4 Pre-Release 4, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.14.4 Pre-Release 7, 1.14.4, 19w34a, 19w35a, 19w37a, 19w38b, 19w38a, 19w39a, 19w40a, 19w41a
    • Fix Version/s: Minecraft 16w39c, 19w42a
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      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

        1. 2015-07-30_20.01.50.png
          625 kB
          Rutger van aert
        2. 2015-11-01_21.40.23.png
          349 kB
          [Mod] Kumasasa
        3. Bildschirmaufnahme (12).mp4
          524 kB
          Fabian Röling
        4. Minecraft 1.13.2 10_25_2018 7_59_19 PM.png
          113 kB
          Jadon Savell

          Issue Links

            Activity

              People

              • Assignee:
                cojomax99 [Mojang] Cory Scheviak
                Reporter:
                Asteraoth [Mod] Asteraoth
              • Votes:
                33 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: