world/layer: add biome data to returned layer

This commit is contained in:
Matthias Schiffer 2023-04-09 22:56:02 +02:00
parent 0d2c99dacf
commit e912f60ba3
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 18 additions and 6 deletions

View file

@ -126,7 +126,10 @@ impl<'a> RegionProcessor<'a> {
data: world::de::Chunk,
) -> Result<
Option<(
Box<world::layer::BlockInfoArray>,
(
Box<world::layer::BlockInfoArray>,
Box<world::layer::BiomeArray>,
),
Box<world::layer::BlockLightArray>,
)>,
> {
@ -192,7 +195,7 @@ impl<'a> RegionProcessor<'a> {
minedmap::io::region::from_file(path)?.foreach_chunk(
|chunk_coords, data: world::de::Chunk| {
let Some((processed_chunk, block_light)) = self
let Some(((processed_chunk, _), block_light)) = self
.process_chunk(data)
.with_context(|| format!("Failed to process chunk {:?}", chunk_coords))?
else {