diff options
author | andrew <xdotftw@gmail.com> | 2014-03-01 20:34:19 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-03-01 20:34:19 +0100 |
commit | d73cdba1f66a92f011ac881b581595c0959139ef (patch) | |
tree | a5c62bbc0cf7c52727e96e348a5978698c6c7a5d /src/Generating | |
parent | Refactored global block property arrays (diff) | |
download | cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar.gz cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar.bz2 cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar.lz cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar.xz cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar.zst cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.zip |
Diffstat (limited to 'src/Generating')
-rw-r--r-- | src/Generating/FinishGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp index 02045f76a..f2d66af70 100644 --- a/src/Generating/FinishGen.cpp +++ b/src/Generating/FinishGen.cpp @@ -88,7 +88,7 @@ void cFinishGenNetherClumpFoliage::GenFinish(cChunkDesc & a_ChunkDesc) { continue; } - if (!g_BlockIsSolid[a_ChunkDesc.GetBlockType(PosX, y - 1, PosZ)]) // Only place on solid blocks + if (!cBlockInfo::IsSolid(a_ChunkDesc.GetBlockType(PosX, y - 1, PosZ))) // Only place on solid blocks { continue; } @@ -131,7 +131,7 @@ void cFinishGenNetherClumpFoliage::TryPlaceClump(cChunkDesc & a_ChunkDesc, int a } BLOCKTYPE BlockBelow = a_ChunkDesc.GetBlockType(x, y - 1, z); - if (!g_BlockIsSolid[BlockBelow]) // Only place on solid blocks + if (!cBlockInfo::IsSolid(BlockBelow)) // Only place on solid blocks { continue; } @@ -329,7 +329,7 @@ void cFinishGenSnow::GenFinish(cChunkDesc & a_ChunkDesc) case biFrozenOcean: { int Height = a_ChunkDesc.GetHeight(x, z); - if (g_BlockIsSnowable[a_ChunkDesc.GetBlockType(x, Height, z)]) + if (cBlockInfo::IsSnowable(a_ChunkDesc.GetBlockType(x, Height, z))) { a_ChunkDesc.SetBlockType(x, Height + 1, z, E_BLOCK_SNOW); a_ChunkDesc.SetHeight(x, z, Height + 1); |