forked from Mirrorlandia_minetest/minetest
Clear custom player HUDs when emerging players. Fixes #711.
This commit is contained in:
parent
5068cb40ce
commit
6911a7d279
@ -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…
Reference in New Issue
Block a user