]> git.lizzy.rs Git - minetest.git/blobdiff - src/server.cpp
auth stuff is now saved only when modified
[minetest.git] / src / server.cpp
index 9bcac5a6437bb09d21605dc487a45025b332a3c7..e668db0c39a2fb2ee50ada456f690b83df9e7c82 100644 (file)
@@ -1728,7 +1728,8 @@ void Server::AsyncRunStep()
                        ScopeProfiler sp(&g_profiler, "Server: saving stuff");
 
                        // Auth stuff
-                       m_authmanager.save();
+                       if(m_authmanager.isModified())
+                               m_authmanager.save();
                        
                        // Map
                        JMutexAutoLock lock(m_env_mutex);