Skip to content

Commit

Permalink
Update GLTW.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
GhustOne authored Oct 15, 2022
1 parent 37ca6f8 commit 8bd415a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cheesemenu/libs/GLTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ local l_next <const> = next
local l_pairs <const> = function(t)
return l_next, t, nil
end
local ipairs <const> = ipairs

function gltw.write_table(tableTW, indentation, exclusions, exclude_empty, string_lines)
for k, v in l_pairs(tableTW) do
Expand Down Expand Up @@ -44,7 +45,7 @@ end
function gltw.write(tableTW, name, path, exclusions, exclude_empty, compiled)
local convertedExclusions = {}
if exclusions then
for k, v in l_pairs(exclusions) do
for _, v in ipairs(exclusions) do
convertedExclusions[v] = true
end
end
Expand Down

0 comments on commit 8bd415a

Please sign in to comment.