diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-07-29 22:31:31 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-07-29 22:31:31 +0200 |
commit | adae2b70b1733a280fe342ca6d0dca7e37301f4f (patch) | |
tree | 389e2ce13e2ba2c701091ce2ae608914480601eb /src/Generating/RoughRavines.cpp | |
parent | Merge pull request #1061 from mc-server/portals (diff) | |
download | cuberite-adae2b70b1733a280fe342ca6d0dca7e37301f4f.tar cuberite-adae2b70b1733a280fe342ca6d0dca7e37301f4f.tar.gz cuberite-adae2b70b1733a280fe342ca6d0dca7e37301f4f.tar.bz2 cuberite-adae2b70b1733a280fe342ca6d0dca7e37301f4f.tar.lz cuberite-adae2b70b1733a280fe342ca6d0dca7e37301f4f.tar.xz cuberite-adae2b70b1733a280fe342ca6d0dca7e37301f4f.tar.zst cuberite-adae2b70b1733a280fe342ca6d0dca7e37301f4f.zip |
Diffstat (limited to 'src/Generating/RoughRavines.cpp')
-rw-r--r-- | src/Generating/RoughRavines.cpp | 26 |
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[] |