diff options
author | Alexander Harkness <me@bearbin.net> | 2015-11-02 19:21:35 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2015-11-02 19:21:35 +0100 |
commit | 7e4c56ce0d568ff5489467c25f3b2b69ca580d87 (patch) | |
tree | f093ffa7aeed600fc42bb3803eec88960c181c4f /src/SpawnPrepare.cpp | |
parent | Merge pull request #2587 from cuberite/bountysource-not-gratipay (diff) | |
download | cuberite-7e4c56ce0d568ff5489467c25f3b2b69ca580d87.tar cuberite-7e4c56ce0d568ff5489467c25f3b2b69ca580d87.tar.gz cuberite-7e4c56ce0d568ff5489467c25f3b2b69ca580d87.tar.bz2 cuberite-7e4c56ce0d568ff5489467c25f3b2b69ca580d87.tar.lz cuberite-7e4c56ce0d568ff5489467c25f3b2b69ca580d87.tar.xz cuberite-7e4c56ce0d568ff5489467c25f3b2b69ca580d87.tar.zst cuberite-7e4c56ce0d568ff5489467c25f3b2b69ca580d87.zip |
Diffstat (limited to 'src/SpawnPrepare.cpp')
-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(); + } } |