diff options
author | Mattes D <github@xoft.cz> | 2014-10-31 19:23:47 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-10-31 19:25:44 +0100 |
commit | e2ffd5429c22753916b207f5fea5a01a65a31987 (patch) | |
tree | f68c28cb011df8e1881fa949a8a0eeb52da7d49d /src/ChunkMap.cpp | |
parent | Update README.md (diff) | |
download | cuberite-e2ffd5429c22753916b207f5fea5a01a65a31987.tar cuberite-e2ffd5429c22753916b207f5fea5a01a65a31987.tar.gz cuberite-e2ffd5429c22753916b207f5fea5a01a65a31987.tar.bz2 cuberite-e2ffd5429c22753916b207f5fea5a01a65a31987.tar.lz cuberite-e2ffd5429c22753916b207f5fea5a01a65a31987.tar.xz cuberite-e2ffd5429c22753916b207f5fea5a01a65a31987.tar.zst cuberite-e2ffd5429c22753916b207f5fea5a01a65a31987.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkMap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index 595040a54..8a8f17a1b 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -822,6 +822,7 @@ void cChunkMap::WakeUpSimulatorsInArea(int a_MinBlockX, int a_MaxBlockX, int a_M int MinChunkX, MinChunkZ, MaxChunkX, MaxChunkZ; cChunkDef::BlockToChunk(a_MinBlockX, a_MinBlockZ, MinChunkX, MinChunkZ); cChunkDef::BlockToChunk(a_MaxBlockX, a_MaxBlockZ, MaxChunkX, MaxChunkZ); + cCSLock Lock(m_CSLayers); for (int z = MinChunkZ; z <= MaxChunkZ; z++) { int MinZ = std::max(a_MinBlockZ, z * cChunkDef::Width); |