Formspec: some fix

This commit is contained in:
Van
2026-01-21 16:23:32 +03:00
parent 19d6637a29
commit 0952e96452

View File

@@ -199,11 +199,13 @@ end
function Formspec:listring(lists) function Formspec:listring(lists)
if lists == nil then if lists == nil then
self:addElement('listring[]') self:addElement('listring[]')
return
end end
local element = '' local element = ''
for list in lists do for _, list in pairs(lists) do
element = element..('listring[%s;%s]'):format(list[1], list[2]) element = element..('listring[%s;%s]'):format(list[1], list[2])
end end