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

Method FindChunk

src/ChunkMap.cpp:314–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312
313
314cChunk * cChunkMap::FindChunk(int a_ChunkX, int a_ChunkZ)
315{
316 ASSERT(m_CSLayers.IsLockedByCurrentThread());
317
318 cChunkLayer * Layer = FindLayerForChunk(a_ChunkX, a_ChunkZ);
319 if (Layer == NULL)
320 {
321 return NULL;
322 }
323 return Layer->FindChunk(a_ChunkX, a_ChunkZ);
324}
325
326
327

Callers 2

GetChunkMethod · 0.80

Calls 1

Tested by

no test coverage detected