fixed block to avoid settings by using proper Heightmap.Types in chunk.getHeight

This commit is contained in:
cola98765
2022-04-14 19:05:56 +02:00
parent 534e4a4377
commit e69b7dec7d
@@ -162,7 +162,7 @@ public class ChunkWrapper implements IChunkWrapper
@Override
public int getMaxY(int x, int z) {
return chunk.getHeight(Heightmap.Types.MOTION_BLOCKING, Math.floorMod(x, 16), Math.floorMod(z, 16));
return chunk.getHeight(Heightmap.Types.WORLD_SURFACE, Math.floorMod(x, 16), Math.floorMod(z, 16));
}
@Override