1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Force player save before kicking on player shutdown (#8157)

This commit is contained in:
Loïc Blot
2019-02-03 09:11:45 +01:00
committed by GitHub
parent 23ea02c79c
commit 70672e1cb7
3 changed files with 4 additions and 3 deletions

View File

@@ -221,7 +221,7 @@ public:
void kickAllPlayers(AccessDeniedCode reason,
const std::string &str_reason, bool reconnect);
// Save players
void saveLoadedPlayers();
void saveLoadedPlayers(bool force = false);
void savePlayer(RemotePlayer *player);
PlayerSAO *loadPlayer(RemotePlayer *player, bool *new_player, session_t peer_id,
bool is_singleplayer);