From 5c6164b55ae0a2788c6f928d119afd4a490a7d83 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 28 Apr 2013 18:54:56 +0000 Subject: Fixed most of client slowdowns caused by sending too many block changes (bad condition in FastSetBlock) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1431 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Chunk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/Chunk.cpp b/source/Chunk.cpp index 83a07d56d..723170bbf 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -1419,7 +1419,7 @@ void cChunk::FastSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockT // The client doesn't need to distinguish between stationary and nonstationary fluids: if ( - (OldBlockMeta == a_BlockMeta) || // Different meta always gets sent to the client + (OldBlockMeta != a_BlockMeta) || // Different meta always gets sent to the client !( ((OldBlockType == E_BLOCK_STATIONARY_WATER) && (a_BlockType == E_BLOCK_WATER)) || // Replacing stationary water with water ((OldBlockType == E_BLOCK_WATER) && (a_BlockType == E_BLOCK_STATIONARY_WATER)) || // Replacing water with stationary water -- cgit v1.2.3