diff options
author | tycho <work.tycho@gmail.com> | 2015-05-30 18:22:03 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-06-05 23:31:21 +0200 |
commit | 19c95ee5645db8e8d1e04d80ca44c21c11732c7f (patch) | |
tree | e53899b0ea68446b99dee439d2ff4e521f9ea812 /src/ChunkMap.cpp | |
parent | Merge pull request #2206 from mc-server/APIDumpTimeStamp (diff) | |
download | cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar.gz cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar.bz2 cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar.lz cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar.xz cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.tar.zst cuberite-19c95ee5645db8e8d1e04d80ca44c21c11732c7f.zip |
Diffstat (limited to '')
-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); |