summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-03-16 14:01:22 +0100
committerHowaner <franzi.moos@googlemail.com>2014-03-27 23:20:28 +0100
commit7089c5e2671d2bf7781ab2eab7129bb5bd25b1a1 (patch)
tree94e17afec06766cbb985e3095f79027d2af1d50d /src/ChunkMap.cpp
parentcPrefab can draw itself into a cChunkDesc. (diff)
downloadcuberite-7089c5e2671d2bf7781ab2eab7129bb5bd25b1a1.tar
cuberite-7089c5e2671d2bf7781ab2eab7129bb5bd25b1a1.tar.gz
cuberite-7089c5e2671d2bf7781ab2eab7129bb5bd25b1a1.tar.bz2
cuberite-7089c5e2671d2bf7781ab2eab7129bb5bd25b1a1.tar.lz
cuberite-7089c5e2671d2bf7781ab2eab7129bb5bd25b1a1.tar.xz
cuberite-7089c5e2671d2bf7781ab2eab7129bb5bd25b1a1.tar.zst
cuberite-7089c5e2671d2bf7781ab2eab7129bb5bd25b1a1.zip
Diffstat (limited to 'src/ChunkMap.cpp')
-rw-r--r--src/ChunkMap.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index e695f0ab2..da5dd90e4 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -1384,6 +1384,13 @@ void cChunkMap::ReplaceTreeBlocks(const sSetBlockVector & a_Blocks)
}
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[]
}