summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-31 19:23:47 +0100
committerMattes D <github@xoft.cz>2014-10-31 19:25:44 +0100
commite2ffd5429c22753916b207f5fea5a01a65a31987 (patch)
treef68c28cb011df8e1881fa949a8a0eeb52da7d49d /src
parentUpdate README.md (diff)
downloadcuberite-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.cpp1
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);