summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockLeaves.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-04-06 15:16:16 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-04-16 18:04:45 +0200
commit373d9f92a4000d3243fc94d8b5cfb1b64961525d (patch)
tree40d0ee18885a94081859f48d9e2ff31d54ee3387 /src/Blocks/BlockLeaves.h
parentMerge pull request #3144 from cuberite/issue-template (diff)
downloadcuberite-373d9f92a4000d3243fc94d8b5cfb1b64961525d.tar
cuberite-373d9f92a4000d3243fc94d8b5cfb1b64961525d.tar.gz
cuberite-373d9f92a4000d3243fc94d8b5cfb1b64961525d.tar.bz2
cuberite-373d9f92a4000d3243fc94d8b5cfb1b64961525d.tar.lz
cuberite-373d9f92a4000d3243fc94d8b5cfb1b64961525d.tar.xz
cuberite-373d9f92a4000d3243fc94d8b5cfb1b64961525d.tar.zst
cuberite-373d9f92a4000d3243fc94d8b5cfb1b64961525d.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockLeaves.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Blocks/BlockLeaves.h b/src/Blocks/BlockLeaves.h
index 8807a40ef..653fd19bb 100644
--- a/src/Blocks/BlockLeaves.h
+++ b/src/Blocks/BlockLeaves.h
@@ -79,7 +79,7 @@ public:
NIBBLETYPE Meta = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ);
if ((Meta & 0x08) != 0)
{
- a_ChunkInterface.SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, Meta & 0x7);
+ a_ChunkInterface.SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, Meta & 0x7, false, false);
}
}
@@ -116,8 +116,10 @@ public:
if (HasNearLog(Area, BlockX, a_RelY, BlockZ))
{
- // Wood found, the leaves stay; mark them as checked:
- a_Chunk.SetMeta(a_RelX, a_RelY, a_RelZ, Meta | 0x8);
+ // Wood found, the leaves stay; mark them as checked.
+ // There is no point in saving this to disk or informing the client
+ // So we use SetMetaQuiet
+ a_Chunk.SetMeta(a_RelX, a_RelY, a_RelZ, Meta | 0x8, false, false);
return;
}