forked from mtcontrib/minetest_hudbars
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
|
end
|
||||||
|
|
||||||
local function hide_builtin(player)
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user