Synchronously save chunks on server shutdown (#4900)

+ Synchronously save chunks on server shutdown. Fixes #4884
This commit is contained in:
Alexander Harkness
2020-09-21 13:12:09 +01:00
committed by GitHub
parent b6b7fb1a65
commit 8de71fc9d6
3 changed files with 17 additions and 1 deletions
+12
View File
@@ -577,6 +577,18 @@ void cRoot::SaveAllChunks(void)
void cRoot::SaveAllChunksNow(void)
{
for (auto & Entry : m_WorldsByName)
{
Entry.second.SaveAllChunks();
}
}
void cRoot::SetSavingEnabled(bool a_SavingEnabled)
{
for (auto & Entry : m_WorldsByName)