mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-06 23:59:07 +02:00
world: store BlockTypes in section types
Prepare for sections returning BlockType data directly instead of block IDs.
This commit is contained in:
parent
89af4aaee2
commit
f2ab424590
3 changed files with 39 additions and 14 deletions
|
@ -75,7 +75,7 @@ impl<'a> RegionProcessor<'a> {
|
|||
|
||||
/// Processes a single chunk
|
||||
fn process_chunk(&self, data: world::de::Chunk) -> Result<Box<world::layer::BlockInfoArray>> {
|
||||
let chunk = world::chunk::Chunk::new(&data)?;
|
||||
let chunk = world::chunk::Chunk::new(&data, &self.block_types)?;
|
||||
world::layer::top_layer(&chunk, &self.block_types)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue