diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-02 21:54:47 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-02 21:54:47 +0200 |
commit | b587a7f3a5c338afbc07b4d7db4da527eb97d7ae (patch) | |
tree | 4003e8c356da5329b1058b2bac8e7a11fdaaa669 /source/cChunkMap.cpp | |
parent | Leaves decay adjusted to 4 blocks in between the leaves and the log, instead of previous 3 (diff) | |
download | cuberite-b587a7f3a5c338afbc07b4d7db4da527eb97d7ae.tar cuberite-b587a7f3a5c338afbc07b4d7db4da527eb97d7ae.tar.gz cuberite-b587a7f3a5c338afbc07b4d7db4da527eb97d7ae.tar.bz2 cuberite-b587a7f3a5c338afbc07b4d7db4da527eb97d7ae.tar.lz cuberite-b587a7f3a5c338afbc07b4d7db4da527eb97d7ae.tar.xz cuberite-b587a7f3a5c338afbc07b4d7db4da527eb97d7ae.tar.zst cuberite-b587a7f3a5c338afbc07b4d7db4da527eb97d7ae.zip |
Diffstat (limited to 'source/cChunkMap.cpp')
-rw-r--r-- | source/cChunkMap.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/cChunkMap.cpp b/source/cChunkMap.cpp index 0cf6e6c6d..e8167e3a5 100644 --- a/source/cChunkMap.cpp +++ b/source/cChunkMap.cpp @@ -697,6 +697,14 @@ void cChunkMap::ReplaceTreeBlocks(const sSetBlockVector & a_Blocks) Chunk->SetBlock(itr->x, itr->y, itr->z, itr->BlockType, itr->BlockMeta); break; } + case E_BLOCK_LEAVES: + { + if (itr->BlockType == E_BLOCK_LOG) + { + Chunk->SetBlock(itr->x, itr->y, itr->z, itr->BlockType, itr->BlockMeta); + } + break; + } } } // for itr - a_Blocks[] } |