Mojira Archive
MC-118850

Vines use opposite facing value when trying to spread in corners

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)

Fixed

Marcono1234

2017-06-21, 05:29 PM

2017-12-27, 09:03 PM

2017-12-27, 09:03 PM

1

1

Confirmed

corner, facing, solid, vines

Minecraft 1.12, Minecraft 1.12.2

Minecraft 17w50a