make visibility switching work

This commit is contained in:
Dirk Sohler 2019-02-22 18:55:39 +01:00
parent 9f47f58e64
commit ccc0b9a743
No known key found for this signature in database
GPG Key ID: B9751241BD7D4E1A

@ -30,6 +30,8 @@ mtimer.update_timer = function (player_name)
local number = meta:get_string(m.color.key):gsub('#', '0x')
local orientation = get_hud_positions(meta:get_string(m.position.key))
if meta:get_string(m.visible.key) == 'false' then text = '' end
player:hud_change(hud_id, 'text', text)
player:hud_change(hud_id, 'number', number)
player:hud_change(hud_id, 'position', orientation.position)