From 4955631c490097eb1f67280f4a1326189d8b4f7b Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 13 Sep 2023 21:24:55 +0200 Subject: [PATCH] Fix chunk y position --- .../java/com/moulberry/axiom/packet/ChunkSectionModifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/moulberry/axiom/packet/ChunkSectionModifier.java b/src/main/java/com/moulberry/axiom/packet/ChunkSectionModifier.java index b26d622..f55e237 100644 --- a/src/main/java/com/moulberry/axiom/packet/ChunkSectionModifier.java +++ b/src/main/java/com/moulberry/axiom/packet/ChunkSectionModifier.java @@ -56,7 +56,7 @@ public class ChunkSectionModifier { lightEngine = getLightEngine.invoke(chunkSource); chunk = AxiomPaper.getChunk(level, cx, cz); - section = getSection.invoke(chunk, cy + world.getMinHeight() / 16); + section = getSection.invoke(chunk, cy - world.getMinHeight() / 16); hadOnlyAir = hasOnlyAir.invoke(section); heightmaps = types.stream().map(chunkHeightmaps.get(chunk)::get).toArray(Heightmap[]::new);