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

Method CompareChunkClients

src/ChunkMap.cpp:1544–1559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1542
1543
1544void cChunkMap::CompareChunkClients(int a_ChunkX1, int a_ChunkZ1, int a_ChunkX2, int a_ChunkZ2, cClientDiffCallback & a_Callback)
1545{
1546 cCSLock Lock(m_CSLayers);
1547 cChunkPtr Chunk1 = GetChunkNoGen(a_ChunkX1, ZERO_CHUNK_Y, a_ChunkZ1);
1548 if (Chunk1 == NULL)
1549 {
1550 return;
1551 }
1552 cChunkPtr Chunk2 = GetChunkNoGen(a_ChunkX2, ZERO_CHUNK_Y, a_ChunkZ2);
1553 if (Chunk2 == NULL)
1554 {
1555 return;
1556 }
1557
1558 CompareChunkClients(Chunk1, Chunk2, a_Callback);
1559}
1560
1561
1562

Callers

nothing calls this directly

Calls 5

GetAllClientsMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
RemovedMethod · 0.80
AddedMethod · 0.80

Tested by

no test coverage detected