diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-05-21 21:18:09 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-05-21 21:18:09 +0200 |
commit | bd880603a560160d247d79a2fdeb3fbab26994f0 (patch) | |
tree | 6b358262ddfe8ffb42940eb362de0aa8ea6e1532 /src/Chunk.h | |
parent | Fixed stylistic issues (diff) | |
download | cuberite-bd880603a560160d247d79a2fdeb3fbab26994f0.tar cuberite-bd880603a560160d247d79a2fdeb3fbab26994f0.tar.gz cuberite-bd880603a560160d247d79a2fdeb3fbab26994f0.tar.bz2 cuberite-bd880603a560160d247d79a2fdeb3fbab26994f0.tar.lz cuberite-bd880603a560160d247d79a2fdeb3fbab26994f0.tar.xz cuberite-bd880603a560160d247d79a2fdeb3fbab26994f0.tar.zst cuberite-bd880603a560160d247d79a2fdeb3fbab26994f0.zip |
Diffstat (limited to 'src/Chunk.h')
-rw-r--r-- | src/Chunk.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Chunk.h b/src/Chunk.h index 4f6c4cf0a..2de45919e 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -328,11 +328,11 @@ public: } inline void SetMeta(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_Meta) { - if (!(GetMeta(a_RelX, a_RelY, a_RelZ) == a_Meta)) + bool hasChanged = m_ChunkData.SetMeta(a_RelX, a_RelY, a_RelZ, a_Meta); + if (hasChanged) { MarkDirty(); - m_ChunkData.SetMeta(a_RelX, a_RelY, a_RelZ, a_Meta); - + m_PendingSendBlocks.push_back(sSetBlock(m_PosX, m_PosZ, a_RelX, a_RelY, a_RelZ, GetBlock(a_RelX, a_RelY, a_RelZ), a_Meta)); } } |