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:
parent
cf224c9d6b
commit
0717719073
3 changed files with 8 additions and 4 deletions
|
@ -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())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue