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

Method AddChunkClient

src/ChunkMap.cpp:1611–1620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1609
1610
1611bool cChunkMap::AddChunkClient(int a_ChunkX, int a_ChunkZ, cClientHandle * a_Client)
1612{
1613 cCSLock Lock(m_CSLayers);
1614 cChunkPtr Chunk = GetChunk(a_ChunkX, ZERO_CHUNK_Y, a_ChunkZ);
1615 if (Chunk == NULL)
1616 {
1617 return false;
1618 }
1619 return Chunk->AddClient(a_Client);
1620}
1621
1622
1623

Callers

nothing calls this directly

Calls 1

AddClientMethod · 0.45

Tested by

no test coverage detected