1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Player file directory must be only created when using file backend.

Also ensure on each player save that the directory exists
This commit is contained in:
Loïc Blot 2019-01-04 10:06:46 +01:00
parent cf224c9d6b
commit 0717719073
3 changed files with 8 additions and 4 deletions

View file

@ -544,9 +544,6 @@ void ServerEnvironment::kickAllPlayers(AccessDeniedCode reason,
void ServerEnvironment::saveLoadedPlayers()
{
std::string players_path = m_path_world + DIR_DELIM + "players";
fs::CreateDir(players_path);
for (RemotePlayer *player : m_players) {
if (player->checkModified() || (player->getPlayerSAO() &&
player->getPlayerSAO()->getMeta().isModified())) {