diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2014-01-02 13:32:55 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2014-01-02 13:32:55 +0100 |
commit | 042b72bc172e7eb4e9ef7668ae28be6e7a3b4036 (patch) | |
tree | 7e3d265d3d1fde9f80f3f4623c2f59a5b0521b65 /src/World.cpp | |
parent | Merge branch 'master' into threadsafequeue (diff) | |
download | cuberite-042b72bc172e7eb4e9ef7668ae28be6e7a3b4036.tar cuberite-042b72bc172e7eb4e9ef7668ae28be6e7a3b4036.tar.gz cuberite-042b72bc172e7eb4e9ef7668ae28be6e7a3b4036.tar.bz2 cuberite-042b72bc172e7eb4e9ef7668ae28be6e7a3b4036.tar.lz cuberite-042b72bc172e7eb4e9ef7668ae28be6e7a3b4036.tar.xz cuberite-042b72bc172e7eb4e9ef7668ae28be6e7a3b4036.tar.zst cuberite-042b72bc172e7eb4e9ef7668ae28be6e7a3b4036.zip |
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp index cc543d460..39300d419 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -367,10 +367,13 @@ void cWorld::InitializeSpawn(void) cWorldLoadProgress Progress(this); // Wait for the loader to finish loading - m_Storage.WaitForQueuesEmpty(); + m_Storage.WaitForLoadQueueEmpty(); // Wait for the generator to finish generating m_Generator.WaitForQueueEmpty(); + + // Wait for the loader to finish saving + m_Storage.WaitForSaveQueueEmpty(); Progress.Stop(); } |