diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-06-10 16:16:05 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-06-10 16:16:05 +0200 |
commit | dd4b4150511f71c3d5a1433323d36268859f2c47 (patch) | |
tree | d98d6473566d0f0132a7afd72631abb69f68b942 /src/ChunkMap.cpp | |
parent | Merge pull request #2162 from lkolbly/master (diff) | |
download | cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.gz cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.bz2 cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.lz cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.xz cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.zst cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.zip |
Diffstat (limited to 'src/ChunkMap.cpp')
-rw-r--r-- | src/ChunkMap.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index 2f38e4cd6..4db73971c 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -409,22 +409,6 @@ void cChunkMap::BroadcastBlockEntity(int a_BlockX, int a_BlockY, int a_BlockZ, c -void cChunkMap::BroadcastChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer, const cClientHandle * a_Exclude) -{ - cCSLock Lock(m_CSLayers); - cChunkPtr Chunk = GetChunkNoGen(a_ChunkX, a_ChunkZ); - if (Chunk == nullptr) - { - return; - } - // It's perfectly legal to broadcast packets even to invalid chunks! - Chunk->BroadcastChunkData(a_Serializer, a_Exclude); -} - - - - - void cChunkMap::BroadcastCollectEntity(const cEntity & a_Entity, const cPlayer & a_Player, const cClientHandle * a_Exclude) { cCSLock Lock(m_CSLayers); |