1
0

Add new leaves to all classes.

This commit is contained in:
Howaner 2014-03-16 14:01:22 +01:00
parent 7b585290fc
commit 7089c5e267
2 changed files with 8 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public:
return;
}
if ((Meta & 0x8) != 0)
if ((Meta & 0x8) == 0)
{
// These leaves have been checked for decay lately and nothing around them changed
return;

View File

@ -1384,6 +1384,13 @@ void cChunkMap::ReplaceTreeBlocks(const sSetBlockVector & a_Blocks)
}
break;
}
case E_BLOCK_NEW_LEAVES:
{
if (itr->BlockType == E_BLOCK_NEW_LOG)
{
Chunk->SetBlock(itr->x, itr->y, itr->z, itr->BlockType, itr->BlockMeta);
}
}
}
} // for itr - a_Blocks[]
}