fixed water regression

if water do water, if not, then cave
This commit is contained in:
Ethan 2024-10-19 03:22:41 +01:00
parent 1672a9abf2
commit de4eedd66d

View File

@ -338,17 +338,16 @@ void WorldGen::GenerateChunkData(int chunkX, int chunkY, int chunkZ, int chunkSi
} }
// Step 1: Terrain Shape (surface and caves) and Ores // 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) if (currentY > noiseY and currentY <= waterLevel)
{ {
// TODO: This is where wet stuff goes // TODO: This is where wet stuff goes
chunkData->push_back(Blocks::WATER); chunkData->push_back(Blocks::WATER);
continue; continue;
} else if (cave) {
// TODO: This is where cave stuff goes
chunkData->push_back(Blocks::AIR);
continue;
} }
// Ground // Ground