mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
players to not be saved when map saving is disabled (due to some error)
This commit is contained in:
@@ -1395,6 +1395,8 @@ void Server::AsyncRunStep()
|
|||||||
|
|
||||||
JMutexAutoLock lock(m_env_mutex);
|
JMutexAutoLock lock(m_env_mutex);
|
||||||
|
|
||||||
|
if(((ServerMap*)(&m_env.getMap()))->isSavingEnabled() == true)
|
||||||
|
{
|
||||||
// Save only changed parts
|
// Save only changed parts
|
||||||
m_env.getMap().save(true);
|
m_env.getMap().save(true);
|
||||||
|
|
||||||
@@ -1412,6 +1414,7 @@ void Server::AsyncRunStep()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Server::Receive()
|
void Server::Receive()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user