From 373d9f92a4000d3243fc94d8b5cfb1b64961525d Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Wed, 6 Apr 2016 16:16:16 +0300 Subject: Updated cChunk::SetMeta, fixed grass growth, reduced markDirty/setMeta usage --- src/Blocks/BlockLeaves.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Blocks/BlockLeaves.h') 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; } -- cgit v1.2.3