mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-22 11:58:21 -06:00
fix world gen
This commit is contained in:
parent
427feecb55
commit
1a948b43be
|
@ -18,8 +18,8 @@ pub fn generate_world(chunk_position: IVec3, seed: u64) -> BlockData {
|
|||
|
||||
let mut blocks = Box::new([[[Block::Air; CHUNK_SIZE]; CHUNK_SIZE]; CHUNK_SIZE]);
|
||||
|
||||
if chunk_position.y > 0 {
|
||||
if chunk_position.y == 1 {
|
||||
if chunk_position.y >= 0 {
|
||||
if chunk_position.y == 0 {
|
||||
for x in 0..CHUNK_SIZE {
|
||||
for z in 0..CHUNK_SIZE {
|
||||
blocks[x][0][z] = Block::Dirt;
|
||||
|
|
Loading…
Reference in a new issue