summaryrefslogtreecommitdiffstats
path: root/source/ChunkSender.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/ChunkSender.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/ChunkSender.cpp b/source/ChunkSender.cpp
index 517150d1d..232ce423c 100644
--- a/source/ChunkSender.cpp
+++ b/source/ChunkSender.cpp
@@ -182,6 +182,11 @@ void cChunkSender::SendChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ, cClientHa
}
}
+ if (!m_World->HasChunkAnyClients(a_ChunkX, a_ChunkY, a_ChunkZ))
+ {
+ return;
+ }
+
// Prepare MapChunk packets:
if( !m_World->GetChunkData(a_ChunkX, a_ChunkY, a_ChunkZ, *this) )
{