From 6cb44b2729574cceba3221434448886577d024d3 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Tue, 3 Dec 2024 12:23:58 +0800 Subject: [PATCH] fix: use dimension min height in AllayUnsafeChunk's constructor --- .../java/org/allaymc/server/world/chunk/AllayUnsafeChunk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/allaymc/server/world/chunk/AllayUnsafeChunk.java b/server/src/main/java/org/allaymc/server/world/chunk/AllayUnsafeChunk.java index 1471360ed..a28bf6e6a 100644 --- a/server/src/main/java/org/allaymc/server/world/chunk/AllayUnsafeChunk.java +++ b/server/src/main/java/org/allaymc/server/world/chunk/AllayUnsafeChunk.java @@ -65,7 +65,7 @@ private AllayUnsafeChunk(int chunkX, int chunkZ, DimensionInfo dimensionInfo) { chunkZ, dimensionInfo, new ChunkSection[dimensionInfo.chunkSectionCount()], - new HeightMap(), + new HeightMap((short) dimensionInfo.minHeight()), new Long2ObjectOpenHashMap<>(), new Int2ObjectNonBlockingMap<>(), ChunkState.EMPTY,