diff options
author | Mattes D <github@xoft.cz> | 2014-06-27 20:56:29 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-06-27 20:56:44 +0200 |
commit | 9926abd4f55d668dec9e06c2ba23fa3bb9209eeb (patch) | |
tree | 60c0b01aea8d40c5bb4495bacb57914d3c13933b /src/ChunkMap.cpp | |
parent | Merge pull request #1129 from mc-server/CodeCoverageCondition (diff) | |
download | cuberite-9926abd4f55d668dec9e06c2ba23fa3bb9209eeb.tar cuberite-9926abd4f55d668dec9e06c2ba23fa3bb9209eeb.tar.gz cuberite-9926abd4f55d668dec9e06c2ba23fa3bb9209eeb.tar.bz2 cuberite-9926abd4f55d668dec9e06c2ba23fa3bb9209eeb.tar.lz cuberite-9926abd4f55d668dec9e06c2ba23fa3bb9209eeb.tar.xz cuberite-9926abd4f55d668dec9e06c2ba23fa3bb9209eeb.tar.zst cuberite-9926abd4f55d668dec9e06c2ba23fa3bb9209eeb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkMap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index d2ccca94e..c9fb0b59e 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -419,16 +419,16 @@ void cChunkMap::BroadcastChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSeriali -void cChunkMap::BroadcastCollectPickup(const cPickup & a_Pickup, const cPlayer & a_Player, const cClientHandle * a_Exclude) +void cChunkMap::BroadcastCollectEntity(const cEntity & a_Entity, const cPlayer & a_Player, const cClientHandle * a_Exclude) { cCSLock Lock(m_CSLayers); - cChunkPtr Chunk = GetChunkNoGen(a_Pickup.GetChunkX(), ZERO_CHUNK_Y, a_Pickup.GetChunkZ()); + cChunkPtr Chunk = GetChunkNoGen(a_Entity.GetChunkX(), ZERO_CHUNK_Y, a_Entity.GetChunkZ()); if (Chunk == NULL) { return; } // It's perfectly legal to broadcast packets even to invalid chunks! - Chunk->BroadcastCollectPickup(a_Pickup, a_Player, a_Exclude); + Chunk->BroadcastCollectEntity(a_Entity, a_Player, a_Exclude); } |