mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
players to not be saved when map saving is disabled (due to some error)
This commit is contained in:
parent
14fafc7217
commit
32a29489f3
1 changed files with 15 additions and 12 deletions
|
@ -1395,6 +1395,8 @@ void Server::AsyncRunStep()
|
|||
|
||||
JMutexAutoLock lock(m_env_mutex);
|
||||
|
||||
if(((ServerMap*)(&m_env.getMap()))->isSavingEnabled() == true)
|
||||
{
|
||||
// Save only changed parts
|
||||
m_env.getMap().save(true);
|
||||
|
||||
|
@ -1411,6 +1413,7 @@ void Server::AsyncRunStep()
|
|||
m_env.serializePlayers(m_mapsavedir);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Server::Receive()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue