fix the hud enabling/autohiding for new players
This commit is contained in:
parent
0486bc4dd8
commit
e63d4e6d15
3
hud.lua
3
hud.lua
@ -217,5 +217,8 @@ minetest.register_on_joinplayer(function(player)
|
|||||||
quests.show_hud(playername)
|
quests.show_hud(playername)
|
||||||
end, playername)
|
end, playername)
|
||||||
end
|
end
|
||||||
|
else --new player
|
||||||
|
quests.hud[playername] = {autohide = true}
|
||||||
|
quests.active_quests[playername] = {}
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user