Made DeepSnow remove flowers and mushrooms while snowing.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1001 0a769ca7-a7f5-676a-18bf-c427514a06d6
master
luksor111@gmail.com 2012-10-22 14:32:54 +00:00
parent ba8a5184c8
commit 35e174b4c1
1 changed files with 12 additions and 0 deletions

View File

@ -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)