summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-31 19:27:35 +0100
committerMattes D <github@xoft.cz>2014-10-31 19:27:35 +0100
commit0dd804a59120ce495224f98a0acabc69c6924b08 (patch)
tree9669c462a28a40229b6b2690d7e1613dfe7392c7 /src/ChunkMap.cpp
parentGrownProt biomes: added alterations. (diff)
parentcLuaState: Fixed errors on non-existent callbacks. (diff)
downloadcuberite-0dd804a59120ce495224f98a0acabc69c6924b08.tar
cuberite-0dd804a59120ce495224f98a0acabc69c6924b08.tar.gz
cuberite-0dd804a59120ce495224f98a0acabc69c6924b08.tar.bz2
cuberite-0dd804a59120ce495224f98a0acabc69c6924b08.tar.lz
cuberite-0dd804a59120ce495224f98a0acabc69c6924b08.tar.xz
cuberite-0dd804a59120ce495224f98a0acabc69c6924b08.tar.zst
cuberite-0dd804a59120ce495224f98a0acabc69c6924b08.zip
Diffstat (limited to 'src/ChunkMap.cpp')
-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);