include leaves for the top block, lol

This commit is contained in:
CreepyCre 2021-10-29 15:03:28 +02:00
parent a21073f95d
commit d7f7e123e4

View file

@ -99,7 +99,7 @@ public class VirtualLocation {
public static BlockPos getTopPos(World world, int x, int z) {
int topHeight = world.getChunk(ChunkSectionPos.getSectionCoord(x), ChunkSectionPos.getSectionCoord(z)) // guarantees WorldChunk
.sampleHeightmap(Heightmap.Type.MOTION_BLOCKING_NO_LEAVES, x, z);
.sampleHeightmap(Heightmap.Type.MOTION_BLOCKING, x, z);
return new BlockPos(x, topHeight, z);
}