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

Method SetSource

Tools/BiomeVisualiser/BiomeCache.cpp:216–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214
215
216void cBiomeCache::SetSource(cBiomeSource * a_Source)
217{
218 // TODO: Stop all threads, so that they don't use the source anymore!
219
220 delete m_Source;
221 m_Source = a_Source;
222
223 // Invalidate cache contents:
224 cCSLock Lock(m_CS);
225 m_BaseX = -10000;
226 m_BaseZ = -10000;
227 m_Pool.splice(m_Pool.end(), m_Queue);
228}
229
230
231

Callers 1

InitBiomeViewMethod · 0.45

Calls 1

endMethod · 0.80

Tested by

no test coverage detected