summaryrefslogtreecommitdiffstats
path: root/src/Generating/RoughRavines.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-07-30 07:09:33 +0200
committerMattes D <github@xoft.cz>2014-07-30 07:09:33 +0200
commitb41c8b5de7d302589f223e3c09c7e7380740d6c4 (patch)
treef39e6be30038426abac2dcd95fe25768b0ffd184 /src/Generating/RoughRavines.cpp
parentFixed FinishGen.h types. (diff)
parentAdded soulsand to the terraformed list. (diff)
downloadcuberite-b41c8b5de7d302589f223e3c09c7e7380740d6c4.tar
cuberite-b41c8b5de7d302589f223e3c09c7e7380740d6c4.tar.gz
cuberite-b41c8b5de7d302589f223e3c09c7e7380740d6c4.tar.bz2
cuberite-b41c8b5de7d302589f223e3c09c7e7380740d6c4.tar.lz
cuberite-b41c8b5de7d302589f223e3c09c7e7380740d6c4.tar.xz
cuberite-b41c8b5de7d302589f223e3c09c7e7380740d6c4.tar.zst
cuberite-b41c8b5de7d302589f223e3c09c7e7380740d6c4.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/RoughRavines.cpp26
1 files changed, 4 insertions, 22 deletions
diff --git a/src/Generating/RoughRavines.cpp b/src/Generating/RoughRavines.cpp
index badc7768e..2ee3704b3 100644
--- a/src/Generating/RoughRavines.cpp
+++ b/src/Generating/RoughRavines.cpp
@@ -201,29 +201,11 @@ protected:
{
continue;
}
- switch (a_ChunkDesc.GetBlockType(x, y, z))
+
+ if (cBlockInfo::CanBeTerraformed(a_ChunkDesc.GetBlockType(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:
- {
- a_ChunkDesc.SetBlockType(x, y, z, E_BLOCK_AIR);
- break;
- }
- default: break;
- } // switch (BlockType)
+ a_ChunkDesc.SetBlockType(x, y, z, E_BLOCK_AIR);
+ }
} // for y
} // for x, z - a_BlockTypes
} // for itr - m_Points[]