mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-25 03:55:26 +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.biomePalette = sectionData.biomes.palette;
|
||||||
|
|
||||||
this.blocks = new PackedIntArrayAccess(sectionData.blockStates.data, BLOCKS_PER_SECTION);
|
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.blockLight = sectionData.blockLight;
|
||||||
this.skyLight = sectionData.skyLight;
|
this.skyLight = sectionData.skyLight;
|
||||||
|
Loading…
Reference in New Issue
Block a user