diff options
author | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-22 16:32:54 +0200 |
---|---|---|
committer | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-22 16:32:54 +0200 |
commit | 35e174b4c174b51ccfeb34b844b971c893a6c7fc (patch) | |
tree | 9f0743c2f8d9ddd24b60d0b2ceb35800f112e252 /source/Chunk.cpp | |
parent | Top blocks are now snowed over, either normally, or in deep snow (patch contributed by funmaker, Luksor and Sebi) (diff) | |
download | cuberite-35e174b4c174b51ccfeb34b844b971c893a6c7fc.tar cuberite-35e174b4c174b51ccfeb34b844b971c893a6c7fc.tar.gz cuberite-35e174b4c174b51ccfeb34b844b971c893a6c7fc.tar.bz2 cuberite-35e174b4c174b51ccfeb34b844b971c893a6c7fc.tar.lz cuberite-35e174b4c174b51ccfeb34b844b971c893a6c7fc.tar.xz cuberite-35e174b4c174b51ccfeb34b844b971c893a6c7fc.tar.zst cuberite-35e174b4c174b51ccfeb34b844b971c893a6c7fc.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Chunk.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp index e6c2e527a..03e007684 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -595,6 +595,18 @@ void cChunk::ApplyWeatherToTop(MTRand & a_TickRandom) { SetBlock(X, Height, Z, E_BLOCK_ICE, 0); } + else if ( + (m_World->IsDeepSnowEnabled()) && + ( + (TopBlock == E_BLOCK_RED_ROSE) || + (TopBlock == E_BLOCK_YELLOW_FLOWER) || + (TopBlock == E_BLOCK_RED_MUSHROOM) || + (TopBlock == E_BLOCK_BROWN_MUSHROOM) + ) + ) + { + SetBlock(X, Height, Z, E_BLOCK_SNOW, 0); + } break; } // case (snowy biomes) |