From d29adde0e7a7a0cc83871f7d1def847c26bf9e91 Mon Sep 17 00:00:00 2001 From: Koshak_Mine <52908036+KoshakMineDEV@users.noreply.github.com> Date: Tue, 17 Dec 2024 07:49:51 +0300 Subject: [PATCH] fix: leveldb heightmap (#353) --- .../cn/nukkit/level/format/leveldb/structure/LevelDBChunk.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/cn/nukkit/level/format/leveldb/structure/LevelDBChunk.java b/src/main/java/cn/nukkit/level/format/leveldb/structure/LevelDBChunk.java index bf635386d..eae1c157d 100644 --- a/src/main/java/cn/nukkit/level/format/leveldb/structure/LevelDBChunk.java +++ b/src/main/java/cn/nukkit/level/format/leveldb/structure/LevelDBChunk.java @@ -73,8 +73,7 @@ public LevelDBChunk(@Nullable LevelProvider provider, int chunkX, int chunkZ, @N this.heightMap[i] = (byte) heightmap[i]; } } else { - Arrays.fill(this.heightMap, (byte)-1); - this.recalculateHeightMap(); + Arrays.fill(this.heightMap, (byte) 255); } if (biomes2d != null && biomes2d.length == SUB_CHUNK_2D_SIZE) {