From 6cf4618bb1854846cf94d50efa00c356634462b7 Mon Sep 17 00:00:00 2001 From: Athozus Date: Sat, 30 Mar 2024 21:21:44 +0100 Subject: [PATCH] Use contributions labels instead of code --- ui/about.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ui/about.lua b/ui/about.lua index 18a28f7..882b042 100644 --- a/ui/about.lua +++ b/ui/about.lua @@ -71,21 +71,19 @@ function mail.show_about(name) box[4,0;3,0.45;]] .. mail.get_color("highlighted") .. [[] label[4.2,0;]] .. S("Contributors") .. [[] - tablecolumns[text;text;text;text;text;text] + tablecolumns[text;text] table[4,0.75;5.9,5.5;contributors;]] for _, c in ipairs(contributors) do - formspec = formspec .. c.name .. "," + formspec = formspec .. c.name for _, g in ipairs(groups) do if table.indexof(c.groups, g[1]) >= 1 then - formspec = formspec .. string.upper(g[1]) .. "," + formspec = formspec .. "," .. g[2] .. "," end end - for _ = 1, (#groups-#c.groups) do - formspec = formspec .. "," - end end + formspec = string.sub(formspec, 2, -2) -- remove last blank line formspec = formspec .. mail.theme minetest.show_formspec(name, FORMNAME, formspec)