From ccc0b9a743fabf13f177fdd9240544aee069ee51 Mon Sep 17 00:00:00 2001 From: Dirk Sohler Date: Fri, 22 Feb 2019 18:55:39 +0100 Subject: [PATCH] make visibility switching work --- system/update_timer.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/update_timer.lua b/system/update_timer.lua index ec99aa8..d50294b 100644 --- a/system/update_timer.lua +++ b/system/update_timer.lua @@ -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)