make leaf falling work in autumn/winter

This commit is contained in:
darkrose 2015-12-21 21:19:39 +10:00
parent 9d1184a0bb
commit ad7f829753
1 changed files with 5 additions and 0 deletions

View File

@ -175,12 +175,17 @@ void ItemSAO::step(float dtime, bool send_recommended)
|| m_content == CONTENT_JUNGLELEAVES
|| m_content == CONTENT_APPLE_LEAVES
|| m_content == CONTENT_CONIFER_LEAVES
|| m_content == CONTENT_LEAVES_AUTUMN
|| m_content == CONTENT_LEAVES_WINTER
)
) { // leaves falling on grass become either saplings or wild grass
if (
un.getContent() == CONTENT_MUD
|| un.getContent() == CONTENT_GRASS
|| un.getContent() == CONTENT_GRASS_FOOTSTEPS
|| un.getContent() == CONTENT_GRASS_AUTUMN
|| un.getContent() == CONTENT_GRASS_FOOTSTEPS_AUTUMN
|| un.getContent() == CONTENT_MUDSNOW
) {
content_t c = CONTENT_SAPLING;
std::vector<content_t> search;