mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Clear custom player HUDs when emerging players. Fixes #711.
This commit is contained in:
parent
5068cb40ce
commit
6911a7d279
1 changed files with 3 additions and 0 deletions
|
@ -5077,6 +5077,9 @@ PlayerSAO* Server::emergePlayer(const char *name, u16 peer_id)
|
|||
getPlayerEffectivePrivs(player->getName()),
|
||||
isSingleplayer());
|
||||
|
||||
/* Clean up old HUD elements from previous sessions */
|
||||
player->hud.clear();
|
||||
|
||||
/* Add object to environment */
|
||||
m_env->addActiveObject(playersao);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue