From 1672a9abf2f7fe630b0abb7c61122f15f9952a14 Mon Sep 17 00:00:00 2001 From: Ethan <codedcells@gmail.com> Date: Sat, 19 Oct 2024 03:20:40 +0100 Subject: [PATCH] ! < >= wrong sign, now the right way round --- ScuffedMinecraft/src/WorldGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ScuffedMinecraft/src/WorldGen.cpp b/ScuffedMinecraft/src/WorldGen.cpp index 234c48d..4d81317 100644 --- a/ScuffedMinecraft/src/WorldGen.cpp +++ b/ScuffedMinecraft/src/WorldGen.cpp @@ -375,7 +375,7 @@ void WorldGen::GenerateChunkData(int chunkX, int chunkY, int chunkZ, int chunkSi if (blockSet) continue; - if (currentY == noiseY and noiseY < waterLevel) + if (currentY == noiseY and noiseY >= waterLevel) chunkData->push_back(Blocks::GRASS_BLOCK); else if (currentY > 10) chunkData->push_back(Blocks::DIRT_BLOCK);