mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Renamed normal StructureBlock variant
This commit is contained in:
parent
749ec15bf9
commit
49426565dc
@ -20,7 +20,7 @@ pub enum StructureBlock {
|
||||
GreenSludge,
|
||||
Fruit,
|
||||
Hollow,
|
||||
Block(Rgb<u8>),
|
||||
Normal(Rgb<u8>),
|
||||
}
|
||||
|
||||
impl Vox for StructureBlock {
|
||||
@ -30,7 +30,7 @@ impl Vox for StructureBlock {
|
||||
|
||||
fn is_empty(&self) -> bool {
|
||||
match self {
|
||||
StructureBlock::Block(block) => block.is_empty(),
|
||||
StructureBlock::None => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
@ -118,7 +118,7 @@ impl Asset for Structure {
|
||||
.get(index as usize)
|
||||
.copied()
|
||||
.unwrap_or_else(|| Rgb::broadcast(0));
|
||||
StructureBlock::Block(color)
|
||||
StructureBlock::Normal(color)
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -510,7 +510,7 @@ fn block_from_structure(
|
||||
.map(|e| e as u8),
|
||||
)),
|
||||
StructureBlock::Hollow => Some(Block::empty()),
|
||||
StructureBlock::Block(color) => {
|
||||
StructureBlock::Normal(color) => {
|
||||
Some(Block::new(default_kind, color)).filter(|block| !block.is_empty())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user