summaryrefslogtreecommitdiffstats
path: root/source/ChunkSender.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-07 20:52:40 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-07 20:52:40 +0200
commitb73fba7c0825577fa3b8ba2c54d01d0c03e028fd (patch)
tree3617206ea27dcd8e0e5c919d1ba3f0ae9987ce4d /source/ChunkSender.cpp
parentAnvil storage writing (Basic storage is working, NO entities except for chests are working! Don't use for real servers) (diff)
downloadcuberite-b73fba7c0825577fa3b8ba2c54d01d0c03e028fd.tar
cuberite-b73fba7c0825577fa3b8ba2c54d01d0c03e028fd.tar.gz
cuberite-b73fba7c0825577fa3b8ba2c54d01d0c03e028fd.tar.bz2
cuberite-b73fba7c0825577fa3b8ba2c54d01d0c03e028fd.tar.lz
cuberite-b73fba7c0825577fa3b8ba2c54d01d0c03e028fd.tar.xz
cuberite-b73fba7c0825577fa3b8ba2c54d01d0c03e028fd.tar.zst
cuberite-b73fba7c0825577fa3b8ba2c54d01d0c03e028fd.zip
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) )
{