Fixed chunkmap tree block replacing.
This commit is contained in:
parent
38aad32a8b
commit
91f64da2a6
@ -1376,20 +1376,14 @@ void cChunkMap::ReplaceTreeBlocks(const sSetBlockVector & a_Blocks)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case E_BLOCK_LEAVES:
|
case E_BLOCK_LEAVES:
|
||||||
|
case E_BLOCK_NEW_LEAVES:
|
||||||
{
|
{
|
||||||
if (itr->BlockType == E_BLOCK_LOG)
|
if ((itr->BlockType == E_BLOCK_LOG) || (itr->BlockType == E_BLOCK_NEW_LOG))
|
||||||
{
|
{
|
||||||
Chunk->SetBlock(itr->x, itr->y, itr->z, itr->BlockType, itr->BlockMeta);
|
Chunk->SetBlock(itr->x, itr->y, itr->z, itr->BlockType, itr->BlockMeta);
|
||||||
}
|
}
|
||||||
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[]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user