mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Only keep players loaded while they're connected
This commit is contained in:
parent
50127510e7
commit
7e6db1b803
6 changed files with 188 additions and 249 deletions
|
@ -1027,6 +1027,8 @@ void PlayerSAO::removingFromEnvironment()
|
|||
{
|
||||
m_player->setPlayerSAO(NULL);
|
||||
m_player->peer_id = 0;
|
||||
m_env->savePlayer(m_player->getName());
|
||||
m_env->removePlayer(m_player->getName());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue