mojira.dev
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

[media]
  1. (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)

Linked issues

Attachments

Comments 1

Apparently this issue has been fixed in some 1.13 snapshot.

marcono1234

(Unassigned)

Confirmed

corner, facing, solid, vines

Minecraft 1.12, Minecraft 1.12.2

Minecraft 17w50a

Retrieved