mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-11 09:39:06 +02:00
world/layer: add biome data to returned layer
This commit is contained in:
parent
0d2c99dacf
commit
e912f60ba3
2 changed files with 18 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue