From b73fba7c0825577fa3b8ba2c54d01d0c03e028fd Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 7 May 2012 18:52:40 +0000 Subject: Updated version text to include 1.2.5; ChunkSender doesn't serialize chunk packets for chunks without a client git-svn-id: http://mc-server.googlecode.com/svn/trunk@480 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ChunkSender.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/ChunkSender.cpp') 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) ) { -- cgit v1.2.3