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

Vines use opposite facing value when trying to spread in corners

XMLWordPrintable

    • Confirmed

      The bug

      Vines use the opposite facing value when they try to spread in corners. This causes them to spread on blocks which would only support them on the opposite site or to not spread on blocks which should be able to support them on this side.

      How to reproduce

      1. Build a setup as shown in Setup.png (stair type does not matter)
      2. Increase the randomTickSpeed gamerule value
        /gamerule randomTickSpeed 1000
        

        → The vines spread on the stairs despite them not supporting the vines, updating blocks around the vines causes them to be removed from the stairs

      Code analysis

      Based on 1.12 decompiled using MCP 9.40 PRE 1

      The method net.minecraft.block.BlockVine.updateTick(World, BlockPos, IBlockState, Random) does not call EnumFacing.getOpposite() in the following check:

      else if (iblockstate3.func_193401_d(worldIn, blockpos4, enumfacing1) == BlockFaceShape.SOLID)
      

        1. Setup.png
          212 kB
          Marcono1234
        2. Vines incorrectly spread (1.12).png
          199 kB
          Marcono1234

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: