summaryrefslogtreecommitdiffstats
path: root/source/cChunkMap.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 21:54:47 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 21:54:47 +0200
commitb587a7f3a5c338afbc07b4d7db4da527eb97d7ae (patch)
tree4003e8c356da5329b1058b2bac8e7a11fdaaa669 /source/cChunkMap.cpp
parentLeaves decay adjusted to 4 blocks in between the leaves and the log, instead of previous 3 (diff)
downloadcuberite-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 '')
-rw-r--r--source/cChunkMap.cpp8
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[]
}