wrong sign, now the right way round
This commit is contained in:
Ethan 2024-10-19 03:20:40 +01:00
parent 90dec87700
commit 1672a9abf2

View File

@ -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);