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

Glass panes and iron bars connect to barrier blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 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
    • Confirmed

      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.

        1. 2015-12-08_22.45.20.png
          179 kB
          LIN DING XIANG
        2. 2015-12-08_22.45.40.png
          208 kB
          LIN DING XIANG
        3. 2015-12-08_22.45.56.png
          195 kB
          LIN DING XIANG

            Excited Maria Lemón
            DyingShu LIN DING XIANG
            Votes:
            11 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: