-
Bug
-
Resolution: Works As Intended
-
None
-
Minecraft 1.11.2
-
Confirmed
Based on 1.11.2 decompiled using MCP 9.35 rc1
The bug
Blocks which define net.minecraft.block.Block.EnumOffsetType.XYZ as rendering offset are not offset in y direction based on their y coordinate.
Affected blocks
Last updated for 1.11.2
- tallgrass
How to reproduce
- Place one of the affected blocks at 0 9 -3
- Place one of the affected blocks at 0 7 -3
→ You will see that both blocks are at the same height, while the upper one should be rendered lower
Code analysis
The problem is that the method net.minecraft.block.Block.func_190949_e(IBlockState, IBlockAccess, BlockPos) calls the method net.minecraft.util.math.MathHelper.getCoordinateRandom(int, int, int) always with 0 as y parameter value while it should use the block's y coordinate.