diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-03-18 00:18:02 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-03-19 12:23:30 +0100 |
commit | 55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f (patch) | |
tree | 4ec40239f2f1e2225b14faba1b4e5aa110e1a471 /src/ChunkMap.h | |
parent | Deduplicate WriteBlockEntity (diff) | |
download | cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar.gz cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar.bz2 cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar.lz cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar.xz cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar.zst cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.zip |
Diffstat (limited to 'src/ChunkMap.h')
-rw-r--r-- | src/ChunkMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h index bafadc818..99a1d764d 100644 --- a/src/ChunkMap.h +++ b/src/ChunkMap.h @@ -378,7 +378,7 @@ public: void ChunkValidated(void); // Called by chunks that have become valid /** Returns the CS for locking the chunkmap; only cWorld::cLock may use this function! */ - cCriticalSection & GetCS(void) { return m_CSChunks; } + cCriticalSection & GetCS(void) const { return m_CSChunks; } /** Increments (a_AlwaysTicked == true) or decrements (false) the m_AlwaysTicked counter for the specified chunk. If the m_AlwaysTicked counter is greater than zero, the chunk is ticked in the tick-thread regardless of |