From 35e174b4c174b51ccfeb34b844b971c893a6c7fc Mon Sep 17 00:00:00 2001 From: "luksor111@gmail.com" Date: Mon, 22 Oct 2012 14:32:54 +0000 Subject: Made DeepSnow remove flowers and mushrooms while snowing. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1001 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Chunk.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) -- cgit v1.2.3