From 5c3ee1c4b6f79505fe7712fe16d172c97518a144 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 26 Jan 2023 03:58:05 +0100 Subject: [PATCH] testing --- src/world/worldgen.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/world/worldgen.rs b/src/world/worldgen.rs index 1079975..a518bcd 100644 --- a/src/world/worldgen.rs +++ b/src/world/worldgen.rs @@ -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 }