summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRaekye <adrian@creatifcubed.com>2015-01-26 00:23:30 +0100
committerRaekye <adrian@creatifcubed.com>2015-01-26 00:33:08 +0100
commit08d84080fa50426b77f79f5b55bbf5fb5d3ef718 (patch)
tree4517c2d54b0339504abfe559a98612e9852908f0 /src
parentGamosocm support (diff)
downloadcuberite-08d84080fa50426b77f79f5b55bbf5fb5d3ef718.tar
cuberite-08d84080fa50426b77f79f5b55bbf5fb5d3ef718.tar.gz
cuberite-08d84080fa50426b77f79f5b55bbf5fb5d3ef718.tar.bz2
cuberite-08d84080fa50426b77f79f5b55bbf5fb5d3ef718.tar.lz
cuberite-08d84080fa50426b77f79f5b55bbf5fb5d3ef718.tar.xz
cuberite-08d84080fa50426b77f79f5b55bbf5fb5d3ef718.tar.zst
cuberite-08d84080fa50426b77f79f5b55bbf5fb5d3ef718.zip
Diffstat (limited to 'src')
-rw-r--r--src/Chunk.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 979492b46..f5a1f9900 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -1570,6 +1570,10 @@ void cChunk::FastSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockT
if (
a_SendToClients && // ... we are told to do so AND ...
(
+ !( // ... the old and new blocktypes AREN'T leaves (because the client doesn't need meta updates)
+ ((OldBlockType == E_BLOCK_LEAVES) && (a_BlockType == E_BLOCK_LEAVES)) ||
+ ((OldBlockType == E_BLOCK_NEW_LEAVES) && (a_BlockType == E_BLOCK_NEW_LEAVES))
+ ) || // ... OR ...
(OldBlockMeta != a_BlockMeta) || // ... the meta value is different OR ...
!( // ... the old and new blocktypes AREN'T liquids (because client doesn't need to distinguish betwixt them):
((OldBlockType == E_BLOCK_STATIONARY_WATER) && (a_BlockType == E_BLOCK_WATER)) || // Replacing stationary water with water