Fix message

This commit is contained in:
Jean-Patrick Guerrero 2019-10-04 00:25:10 +02:00
parent c570fa2337
commit 16ceea1aaf

@ -724,11 +724,11 @@ local function get_itemdef_fs(fs, L)
typestr = ESC(S("Tool"))
end
local groupstr = ""
local groupstr
for k, v in pairs(def.groups or {}) do
groupstr = groupstr .. fmt("%s(%d), ", pretty_wrap(k, 13), v)
groupstr = (groupstr or "") .. fmt("%s(%d), ", pretty_wrap(k, 13), v)
end
groupstr = sub(groupstr, 1, -3)
groupstr = groupstr and sub(groupstr, 1, -3)
local specs = {
ESC(S("Name")),