This commit is contained in:
griffi-gh 2023-01-26 03:58:05 +01:00
parent 9ed19bfc0e
commit 5c3ee1c4b6

View file

@ -13,6 +13,14 @@ pub fn generate_world(position: IVec3, _seed: u32) -> BlockData {
blocks[x][0][z] = Block::Grass;
}
}
} else if position.y < -1 {
for x in 0..CHUNK_SIZE {
for y in 0..CHUNK_SIZE {
for z in 0..CHUNK_SIZE {
blocks[x][y][z] = Block::Dirt;
}
}
}
}
blocks
}