Allow walking on soil at the reported height (~1.10.2).

This commit is contained in:
asofold 2016-06-23 22:41:18 +02:00
parent 99df1f65da
commit 67e7b95901

View File

@ -899,6 +899,8 @@ public class BlockProperties {
// Material.COCOA,
// Issues standing on with F_PASSABLE_X4.
Material.TRAP_DOOR,
// 1.10.2 +- client uses the reported height.
Material.SOIL,
}) {
blockFlags[mat.getId()] |= F_GROUND_HEIGHT;
}
@ -2694,6 +2696,10 @@ public class BlockProperties {
return 0.8125;
}
else if ((flags & F_GROUND_HEIGHT) != 0) {
// Default height is used.
if (id == Material.SOIL.getId()) {
return bounds[4];
}
// Assume open gates/trapdoors/things to only allow standing on to, if at all.
if ((flags & F_PASSABLE_X4) != 0 && (access.getData(x, y, z) & 0x04) != 0) {
return bounds[4];