summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-04 12:52:58 +0100
committerMattes D <github@xoft.cz>2014-01-04 12:52:58 +0100
commit4d7f2139981ac6947cc987a6b4d6d46646ebc480 (patch)
tree4a5067e4a9fe55486d08ac1d2e9517aa8531cebe /src/World.cpp
parentMerge pull request #502 from bitdeli-chef/master (diff)
parentFixed Documentation (diff)
downloadcuberite-4d7f2139981ac6947cc987a6b4d6d46646ebc480.tar
cuberite-4d7f2139981ac6947cc987a6b4d6d46646ebc480.tar.gz
cuberite-4d7f2139981ac6947cc987a6b4d6d46646ebc480.tar.bz2
cuberite-4d7f2139981ac6947cc987a6b4d6d46646ebc480.tar.lz
cuberite-4d7f2139981ac6947cc987a6b4d6d46646ebc480.tar.xz
cuberite-4d7f2139981ac6947cc987a6b4d6d46646ebc480.tar.zst
cuberite-4d7f2139981ac6947cc987a6b4d6d46646ebc480.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp5
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();
}