Fix rendering 1.15-worlds that are higher than y 255

This commit is contained in:
Lukas Rieger (Blue) 2022-11-02 14:42:01 +01:00
parent 034d8b097a
commit 5f9716adc5
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
1 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,11 @@ public class ChunkAnvil115 extends MCAChunk {
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;