Synchronously save chunks on server shutdown (#4900)
+ Synchronously save chunks on server shutdown. Fixes #4884
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user