mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-18 00:27:02 +08:00
fix(gameplay): re-enable border blending and protect water in cave gen
This commit is contained in:
@@ -199,7 +199,7 @@ void Chunk::gen_phase_six(
|
||||
Logger::error("ChunkGenerator is Nullptr");
|
||||
return;
|
||||
}
|
||||
// m_generator->blend_surface_blocks_borders(neighbor_block);
|
||||
m_generator->blend_surface_blocks_borders(neighbor_block);
|
||||
m_generator->generate_cave();
|
||||
m_generator->generate_river();
|
||||
}
|
||||
|
||||
@@ -688,6 +688,10 @@ void ChunkGenerator::generate_cave() {
|
||||
if (blocks[Chunk::index(x, y, z)] == 7) {
|
||||
continue;
|
||||
}
|
||||
if (y < WORLD_SIZE_Y - 1 &&
|
||||
blocks[Chunk::index(x, y + 1, z)] == 7) {
|
||||
continue;
|
||||
}
|
||||
blocks[Chunk::index(x, y, z)] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user