mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-13 22:25:57 +01:00
Fix biomes-packed array sometimes sized incorrectly
This commit is contained in:
parent
122ba83ebb
commit
79ea7baba7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user