diff options
author | madmaxoft <github@xoft.cz> | 2014-03-18 15:45:16 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-03-18 15:45:16 +0100 |
commit | 91f64da2a6895f2dee7d010e71282b0c5fb6bf02 (patch) | |
tree | d9fca641e42209e4f6c56271e048ecb9f06f20d3 /src | |
parent | Debuggers: Using binary file mode for .schematics. (diff) | |
download | cuberite-91f64da2a6895f2dee7d010e71282b0c5fb6bf02.tar cuberite-91f64da2a6895f2dee7d010e71282b0c5fb6bf02.tar.gz cuberite-91f64da2a6895f2dee7d010e71282b0c5fb6bf02.tar.bz2 cuberite-91f64da2a6895f2dee7d010e71282b0c5fb6bf02.tar.lz cuberite-91f64da2a6895f2dee7d010e71282b0c5fb6bf02.tar.xz cuberite-91f64da2a6895f2dee7d010e71282b0c5fb6bf02.tar.zst cuberite-91f64da2a6895f2dee7d010e71282b0c5fb6bf02.zip |
Diffstat (limited to '')
-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[] |