Add unbreakanium layer at bottom

This commit is contained in:
crumblingstatue 2023-04-03 14:34:31 +02:00
parent 312e9959ab
commit 6ca737f36c
2 changed files with 7 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before After
Before After

View file

@ -115,6 +115,12 @@ impl Chunk {
b.id = rng.gen_range(1..5);
}
}
// Unbreakable layer at bottom
if pos.y > 510 {
for b in &mut tiles {
b.id = Tile::UNBREAKANIUM;
}
}
Self { tiles }
}
@ -132,4 +138,5 @@ pub struct Tile {
impl Tile {
pub const AIR: TileId = 0;
pub const UNBREAKANIUM: TileId = 5;
}