diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-19 20:13:05 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-19 20:13:05 +0100 |
commit | 1635c696de75e17adaeee65531fa9b864542cca8 (patch) | |
tree | fbea00253179bfb2e11d5a8899071cbc191091ab /src/ChunkMap.cpp | |
parent | Added unreachable lines backit prtected by preprocessor guards (diff) | |
parent | APIDump: Reformatted the plugin to avoid all ZBS Analyzer issues. (diff) | |
download | cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar.gz cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar.bz2 cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar.lz cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar.xz cuberite-1635c696de75e17adaeee65531fa9b864542cca8.tar.zst cuberite-1635c696de75e17adaeee65531fa9b864542cca8.zip |
Diffstat (limited to 'src/ChunkMap.cpp')
-rw-r--r-- | src/ChunkMap.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index 60fbf39d4..ffba52d54 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -1376,19 +1376,13 @@ void cChunkMap::ReplaceTreeBlocks(const sSetBlockVector & a_Blocks) break; } case E_BLOCK_LEAVES: - { - if (itr->BlockType == E_BLOCK_LOG) - { - Chunk->SetBlock(itr->x, itr->y, itr->z, itr->BlockType, itr->BlockMeta); - } - break; - } case E_BLOCK_NEW_LEAVES: { - if (itr->BlockType == E_BLOCK_NEW_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); } + break; } } } // for itr - a_Blocks[] |