From e69b7dec7d7bcc45693be4aba4d89c360af3937e Mon Sep 17 00:00:00 2001 From: cola98765 Date: Thu, 14 Apr 2022 19:05:56 +0200 Subject: [PATCH] fixed block to avoid settings by using proper Heightmap.Types in chunk.getHeight --- .../java/com/seibel/lod/common/wrappers/chunk/ChunkWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/chunk/ChunkWrapper.java b/common/src/main/java/com/seibel/lod/common/wrappers/chunk/ChunkWrapper.java index 9d196747a..5c6bf528e 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/chunk/ChunkWrapper.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/chunk/ChunkWrapper.java @@ -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