diff options
author | madmaxoft <github@xoft.cz> | 2013-08-19 21:55:03 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-19 21:55:03 +0200 |
commit | 94f8884f607deffb486f74a753dca2ea9c84cdbc (patch) | |
tree | da97530848526e371b395b23206e0ca9d46f4219 /source/Chunk.cpp | |
parent | Fixed cEvent TimedWait on Linux. (diff) | |
download | cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar.gz cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar.bz2 cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar.lz cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar.xz cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar.zst cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Chunk.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp index e17e4bebc..db533f642 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -573,6 +573,11 @@ void cChunk::ProcessQueuedSetBlocks(void) void cChunk::BroadcastPendingBlockChanges(void) { + if (m_PendingSendBlocks.empty()) + { + return; + } + for (cClientHandleList::iterator itr = m_LoadedByClient.begin(), end = m_LoadedByClient.end(); itr != end; ++itr) { (*itr)->SendBlockChanges(m_PosX, m_PosZ, m_PendingSendBlocks); |