Add water special index

This commit is contained in:
Vechro 2019-08-15 16:50:46 +03:00 committed by Joshua Barretto
parent d65bacbea1
commit 944067fd43
2 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ pub enum StructureBlock {
PineLeaves,
Acacia,
PalmLeaves,
Water,
Fruit,
Hollow,
Block(Block),
@ -95,6 +96,7 @@ impl Asset for Structure {
0 => StructureBlock::TemperateLeaves,
1 => StructureBlock::PineLeaves,
2 => StructureBlock::PalmLeaves,
3 => StructureBlock::Water,
4 => StructureBlock::Acacia,
7 => StructureBlock::Fruit,
15 => StructureBlock::Hollow,

View File

@ -465,6 +465,7 @@ fn block_from_structure(
Lerp::lerp(Rgb::new(0.0, 108.0, 113.0), Rgb::new(30.0, 156.0, 10.0), lerp)
.map(|e| e as u8),
)),
StructureBlock::Water => Some(Block::new(BlockKind::Water, Rgb::new(100, 150, 255))),
StructureBlock::Acacia => Some(Block::new(
BlockKind::Normal,
Lerp::lerp(Rgb::new(35.0, 156.0, 0.0), Rgb::new(62.0, 208.0, 0.0), lerp)