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

Glass panes and iron bars connect to barrier blocks

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 15w49b, Minecraft 1.9 Pre-Release 2, Minecraft 1.9.2, Minecraft 16w15a, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 2, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10.2, Minecraft 16w42a, Minecraft 16w43a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w13b, Minecraft 1.12 Pre-Release 5
    • Confirmation Status:
      Confirmed

      Description

      The bug

      Glass panes and iron bars connect to barrier blocks.

      Suggested fix

      Based off of Minecraft 1.11, MCP 9.35

      net.minecraft.block.BlockPane.canPaneConnectToBlock(Block blockIn)
          public final boolean canPaneConnectToBlock(Block blockIn)
          {
          	//added "blockIn == Blocks.BARRIER ? false : "
              return blockIn == Blocks.BARRIER ? false : blockIn.getDefaultState().isFullCube() || blockIn == this || blockIn == Blocks.GLASS || blockIn == Blocks.STAINED_GLASS || blockIn == Blocks.STAINED_GLASS_PANE || blockIn instanceof BlockPane;
          }
      

      This fixes all glass panes and iron bars.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Excited [Mojang] Maria Lemón
                Reporter:
                DyingShu LIN DING XIANG
              • Votes:
                11 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: