From 5f9716adc5dcddd14669123a7760963790e95910 Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Wed, 2 Nov 2022 14:42:01 +0100 Subject: [PATCH] Fix rendering 1.15-worlds that are higher than y 255 --- .../java/de/bluecolored/bluemap/core/mca/ChunkAnvil115.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil115.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil115.java index 3a1be86a..e13cb685 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil115.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil115.java @@ -150,6 +150,11 @@ public String getBiome(int x, int y, int z) { return LegacyBiomes.idFor(biomes[biomeIntIndex]); } + @Override + public int getMaxY(int x, int z) { + return sections.length * 16 + 15; + } + @Override public int getWorldSurfaceY(int x, int z) { if (this.worldSurfaceHeights.length < 36) return 0;