include leaves for the top block, lol
This commit is contained in:
parent
a21073f95d
commit
d7f7e123e4
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ public class VirtualLocation {
|
||||||
|
|
||||||
public static BlockPos getTopPos(World world, int x, int z) {
|
public static BlockPos getTopPos(World world, int x, int z) {
|
||||||
int topHeight = world.getChunk(ChunkSectionPos.getSectionCoord(x), ChunkSectionPos.getSectionCoord(z)) // guarantees WorldChunk
|
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);
|
return new BlockPos(x, topHeight, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue