Cuberite Forum

Full Version: cChunk is not to be u sed directly?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In the header of the cChunk class, I noticed this comment:

Quote:This class is not to be used directly, instead call actions on cChunkMap (such as cChunkMap::SetBlock()

This is far from reality. cChunk is used directly everywhere. Is this comment up to date?
It can only be used directly when cChunkMap's mutual exclusion is locked. After #3115, it can only be used within the context of the owning chunkmap's owning world's tick thread.

It's sort of up to date.