Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 16ceea1

Browse files
committed
Fix message
1 parent c570fa2 commit 16ceea1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,11 +724,11 @@ local function get_itemdef_fs(fs, L)
724724
typestr = ESC(S("Tool"))
725725
end
726726

727-
local groupstr = ""
727+
local groupstr
728728
for k, v in pairs(def.groups or {}) do
729-
groupstr = groupstr .. fmt("%s(%d), ", pretty_wrap(k, 13), v)
729+
groupstr = (groupstr or "") .. fmt("%s(%d), ", pretty_wrap(k, 13), v)
730730
end
731-
groupstr = sub(groupstr, 1, -3)
731+
groupstr = groupstr and sub(groupstr, 1, -3)
732732

733733
local specs = {
734734
ESC(S("Name")),

0 commit comments

Comments
 (0)