mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-06 23:59:07 +02:00
world/section: replace block_id_at() method with block_at()
Directly return a BlockType, preparing for early lookup of palettes.
This commit is contained in:
parent
f2ab424590
commit
5c82b80924
3 changed files with 19 additions and 16 deletions
|
@ -76,7 +76,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, &self.block_types)?;
|
||||
world::layer::top_layer(&chunk, &self.block_types)
|
||||
world::layer::top_layer(&chunk)
|
||||
}
|
||||
|
||||
fn save_region(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue