summaryrefslogtreecommitdiff
path: root/src/serverenvironment.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2019-02-03 09:11:45 +0100
committerGitHub <noreply@github.com>2019-02-03 09:11:45 +0100
commit70672e1cb7634afc8f884c3ff8a6dca1448abff7 (patch)
treea27ae708a28265a8803ab2ea3099a412c285849a /src/serverenvironment.h
parent23ea02c79cde40a25fea9eb1c97d216d25f8590d (diff)
downloadminetest-70672e1cb7634afc8f884c3ff8a6dca1448abff7.tar.gz
minetest-70672e1cb7634afc8f884c3ff8a6dca1448abff7.tar.bz2
minetest-70672e1cb7634afc8f884c3ff8a6dca1448abff7.zip
Force player save before kicking on player shutdown (#8157)
Diffstat (limited to 'src/serverenvironment.h')
-rw-r--r--src/serverenvironment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serverenvironment.h b/src/serverenvironment.h
index b883e0dc5..77adcf627 100644
--- a/src/serverenvironment.h
+++ b/src/serverenvironment.h
@@ -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);