Fix biomes-packed array sometimes sized incorrectly

This commit is contained in:
Lukas Rieger (Blue) 2024-02-24 13:37:02 +01:00
parent 122ba83ebb
commit 79ea7baba7
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -209,7 +209,7 @@ public Section(SectionData sectionData) {
this.biomePalette = sectionData.biomes.palette;
this.blocks = new PackedIntArrayAccess(sectionData.blockStates.data, BLOCKS_PER_SECTION);
this.biomes = new PackedIntArrayAccess(sectionData.biomes.data, BIOMES_PER_SECTION);
this.biomes = new PackedIntArrayAccess(Math.max(MCAUtil.ceilLog2(this.biomePalette.length), 1), sectionData.biomes.data);
this.blockLight = sectionData.blockLight;
this.skyLight = sectionData.skyLight;