From 734136ac46c79b350c034c7b638d963037a0d5df Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sat, 20 Nov 2021 16:38:04 +0100 Subject: [PATCH] Minor thing --- src/gui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.lua b/src/gui.lua index 7205cc7..73b45a0 100644 --- a/src/gui.lua +++ b/src/gui.lua @@ -1297,7 +1297,7 @@ local function get_tabs_fs(player, data, fs, full_height) fs("style_type[image_button:hovered;textcolor=#fff]") fs("image_button", X, Y, tab_len, tab_hgh, "", fmt("tab_%s", def.name), ESC(def.description)) - if def.image and def.image ~= "" then + if true_str(def.image) then local desc = translate(data.lang_code, def.description) fs("style_type[image;noclip=true]") fs("image", X + (tab_len / 2) - ((#desc * 0.1) / 2) - 0.55,