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; return;
} }
if ((Meta & 0x8) != 0) if ((Meta & 0x8) == 0)
{ {
// These leaves have been checked for decay lately and nothing around them changed // These leaves have been checked for decay lately and nothing around them changed
return; return;

View File

@ -1384,6 +1384,13 @@ void cChunkMap::ReplaceTreeBlocks(const sSetBlockVector & a_Blocks)
} }
break; 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[] } // for itr - a_Blocks[]
} }