summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2015-02-23 01:34:13 +0100
committerWuzzy <almikes@aol.com>2015-02-23 01:34:13 +0100
commit25b59646c2254903b3d1ca9a1b26140f36315952 (patch)
treebeffa46f0ed5829f8ed74ac6a6bdcab3debe679d /init.lua
parent5c5b516834e5fe8670e19c61ab5851795ae98de0 (diff)
Fix HUD elements disappearing for reconnectors
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 359e022..526f221 100644
--- a/init.lua
+++ b/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