summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChunkMap.cpp10
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[]