summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-19 22:55:34 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-19 22:55:34 +0200
commit6a5ebcd6ca95361b8a6ba9afc963850bf4cee913 (patch)
tree419423d620d7595a03d52c70c26b6fa83fc08126
parentRemoved unused [Physics].Water section from settings.ini. (diff)
downloadcuberite-6a5ebcd6ca95361b8a6ba9afc963850bf4cee913.tar
cuberite-6a5ebcd6ca95361b8a6ba9afc963850bf4cee913.tar.gz
cuberite-6a5ebcd6ca95361b8a6ba9afc963850bf4cee913.tar.bz2
cuberite-6a5ebcd6ca95361b8a6ba9afc963850bf4cee913.tar.lz
cuberite-6a5ebcd6ca95361b8a6ba9afc963850bf4cee913.tar.xz
cuberite-6a5ebcd6ca95361b8a6ba9afc963850bf4cee913.tar.zst
cuberite-6a5ebcd6ca95361b8a6ba9afc963850bf4cee913.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/Ravines.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/source/Generating/Ravines.cpp b/source/Generating/Ravines.cpp
index c298033f9..af53259bc 100644
--- a/source/Generating/Ravines.cpp
+++ b/source/Generating/Ravines.cpp
@@ -502,7 +502,29 @@ void cStructGenRavines::cRavine::ProcessChunk(
int Top = std::min(itr->m_Top, (int)(cChunkDef::Height)); // Stupid gcc needs int cast
for (int y = std::max(itr->m_Bottom, 1); y <= Top; y++)
{
- cChunkDef::SetBlock(a_BlockTypes, x, y, z, E_BLOCK_AIR);
+ switch (cChunkDef::GetBlock(a_BlockTypes, x, y, z))
+ {
+ // Only carve out these specific block types
+ case E_BLOCK_DIRT:
+ case E_BLOCK_GRASS:
+ case E_BLOCK_STONE:
+ case E_BLOCK_COBBLESTONE:
+ case E_BLOCK_GRAVEL:
+ case E_BLOCK_SAND:
+ case E_BLOCK_SANDSTONE:
+ case E_BLOCK_NETHERRACK:
+ case E_BLOCK_COAL_ORE:
+ case E_BLOCK_IRON_ORE:
+ case E_BLOCK_GOLD_ORE:
+ case E_BLOCK_DIAMOND_ORE:
+ case E_BLOCK_REDSTONE_ORE:
+ case E_BLOCK_REDSTONE_ORE_GLOWING:
+ {
+ cChunkDef::SetBlock(a_BlockTypes, x, y, z, E_BLOCK_AIR);
+ break;
+ }
+ default: break;
+ }
}
}
} // for x, z - a_BlockTypes