mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-11-28 01:53:46 +01:00
Fix HUD elements disappearing for reconnectors
This commit is contained in:
parent
5c5b516834
commit
25b59646c2
5
init.lua
5
init.lua
@ -277,7 +277,10 @@ if set then
|
||||
end
|
||||
|
||||
local function hide_builtin(player)
|
||||
player:hud_set_flags({healthbar = false, breathbar = false})
|
||||
local flags = player:hud_get_flags()
|
||||
flags.healthbar = false
|
||||
flags.breathbar = false
|
||||
player:hud_set_flags(flags)
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user