diff options
author | worktycho <work.tycho@gmail.com> | 2015-11-03 01:23:45 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-11-03 01:23:45 +0100 |
commit | 47604cd91482cd70f1eda8e1c84971a43a209fb1 (patch) | |
tree | e38111dcc42802a50cdc6c329796325bee6db67b /src | |
parent | Examined a fix for #2588 (diff) | |
parent | Merge branch 'master' into chunkprepare-deadlock (diff) | |
download | cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar.gz cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar.bz2 cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar.lz cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar.xz cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.tar.zst cuberite-47604cd91482cd70f1eda8e1c84971a43a209fb1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/SpawnPrepare.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SpawnPrepare.cpp b/src/SpawnPrepare.cpp index e332d3b1a..9f1e645b1 100644 --- a/src/SpawnPrepare.cpp +++ b/src/SpawnPrepare.cpp @@ -64,7 +64,10 @@ void cSpawnPrepare::PrepareChunks(cWorld & a_World, int a_SpawnChunkX, int a_Spa } // for i // Wait for the lighting thread to prepare everything. Event is set in the Call() callback: - prep.m_EvtFinished.Wait(); + if (MaxIdx > 0) + { + prep.m_EvtFinished.Wait(); + } } |