MCPcopy Create free account
hub / github.com/cuberite/cuberite / WantsSendChunk

Method WantsSendChunk

src/ClientHandle.cpp:2565–2574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2563
2564
2565bool cClientHandle::WantsSendChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ)
2566{
2567 if (m_State >= csDestroying)
2568 {
2569 return false;
2570 }
2571
2572 cCSLock Lock(m_CSChunkLists);
2573 return (std::find(m_ChunksToSend.begin(), m_ChunksToSend.end(), cChunkCoords(a_ChunkX, a_ChunkY, a_ChunkZ)) != m_ChunksToSend.end());
2574}
2575
2576
2577

Callers 1

SendChunkMethod · 0.80

Calls 3

cChunkCoordsClass · 0.85
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected