Add green sludge special index

This commit is contained in:
Vechro 2019-08-15 17:23:14 +03:00 committed by Joshua Barretto
parent 944067fd43
commit b5b3b980fe
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ pub enum StructureBlock {
Acacia,
PalmLeaves,
Water,
GreenSludge,
Fruit,
Hollow,
Block(Block),
@ -98,6 +99,7 @@ impl Asset for Structure {
2 => StructureBlock::PalmLeaves,
3 => StructureBlock::Water,
4 => StructureBlock::Acacia,
6 => StructureBlock::GreenSludge,
7 => StructureBlock::Fruit,
15 => StructureBlock::Hollow,
index => {

View File

@ -466,6 +466,7 @@ fn block_from_structure(
.map(|e| e as u8),
)),
StructureBlock::Water => Some(Block::new(BlockKind::Water, Rgb::new(100, 150, 255))),
StructureBlock::GreenSludge => Some(Block::new(BlockKind::Water, Rgb::new(30, 126, 23))),
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)