mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-04 06:39:07 +02:00
resource: rename BlockTypeMap to BlockTypes
The block_types() function it turned into a Default implementation.
This commit is contained in:
parent
95e4e45974
commit
4c2fd6c1a9
3 changed files with 18 additions and 15 deletions
|
@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
|
|||
|
||||
use super::chunk::Chunk;
|
||||
use crate::{
|
||||
resource::{BlockFlag, BlockType, BlockTypeMap},
|
||||
resource::{BlockFlag, BlockType, BlockTypes},
|
||||
types::*,
|
||||
};
|
||||
|
||||
|
@ -92,7 +92,7 @@ pub type BlockInfoArray = LayerBlockArray<Option<BlockInfo>>;
|
|||
/// determined as the block that should be visible on the rendered
|
||||
/// map. For water blocks, the height of the first non-water block
|
||||
/// is additionally filled in as the water depth.
|
||||
pub fn top_layer(chunk: &Chunk, block_types: &BlockTypeMap) -> Result<Box<BlockInfoArray>> {
|
||||
pub fn top_layer(chunk: &Chunk, block_types: &BlockTypes) -> Result<Box<BlockInfoArray>> {
|
||||
use BLOCKS_PER_CHUNK as N;
|
||||
|
||||
let mut done = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue