From de4eedd66d0e1b12292c0df259473a44441362b9 Mon Sep 17 00:00:00 2001 From: Ethan Date: Sat, 19 Oct 2024 03:22:41 +0100 Subject: [PATCH] fixed water regression if water do water, if not, then cave --- ScuffedMinecraft/src/WorldGen.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ScuffedMinecraft/src/WorldGen.cpp b/ScuffedMinecraft/src/WorldGen.cpp index 4d81317..3e37733 100644 --- a/ScuffedMinecraft/src/WorldGen.cpp +++ b/ScuffedMinecraft/src/WorldGen.cpp @@ -338,17 +338,16 @@ void WorldGen::GenerateChunkData(int chunkX, int chunkY, int chunkZ, int chunkSi } // Step 1: Terrain Shape (surface and caves) and Ores - if (cave) { - // TODO: This is where cave stuff goes - chunkData->push_back(Blocks::AIR); - continue; - } if (currentY > noiseY and currentY <= waterLevel) { // TODO: This is where wet stuff goes chunkData->push_back(Blocks::WATER); continue; + } else if (cave) { + // TODO: This is where cave stuff goes + chunkData->push_back(Blocks::AIR); + continue; } // Ground