fixed last delimiter

This commit is contained in:
Chr1Z93 2024-02-16 17:11:55 +01:00
parent 9f30e5ee39
commit 6a64dd4909

View File

@ -52,11 +52,9 @@ function generate(_, playerColor)
-- construct the string (new line for each instruction)
local description = "++SCED import instructions++"
for _, entry in ipairs(idList) do
description = description .. "\n- add: " .. entry.id .. " (**" .. entry.name .. "**)" .. ", "
description = description .. "\n- add: " .. entry.id .. " (**" .. entry.name .. "**)"
end
-- remove last delimiter (last two characters)
description = description:sub(1, -3)
self.editInput({index = 0, value = description})
end