summaryrefslogtreecommitdiffstats
path: root/src
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
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 '')
-rw-r--r--src/Blocks/BlockLeaves.h2
-rw-r--r--src/ChunkMap.cpp7
2 files changed, 8 insertions, 1 deletions
diff --git a/src/Blocks/BlockLeaves.h b/src/Blocks/BlockLeaves.h
index a6d3373c1..954b993d6 100644
--- a/src/Blocks/BlockLeaves.h
+++ b/src/Blocks/BlockLeaves.h
@@ -87,7 +87,7 @@ public:
return;
}
- if ((Meta & 0x8) != 0)
+ if ((Meta & 0x8) == 0)
{
// These leaves have been checked for decay lately and nothing around them changed
return;
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[]
}