Fix list command

This commit is contained in:
2025-01-04 18:43:39 +01:00
parent a6d570c553
commit 6a4cc91413

View File

@@ -179,13 +179,13 @@ end
function ListSets() function ListSets()
local sets = {} local sets = {}
for setName, _ in pairs(ActionBarSaverReloaded.sets) do for setName, foo in pairs(ActionBarSaverReloaded.sets) do
table.insert(sets, setName) table.insert(sets, setName)
end end
table.sort(sets) table.sort(sets)
local setsStr = table.concat(sets, ", ") local setsStr = table.concat(sets, ", ")
print(not Str.nullOrEmpty(setsStr) and setsStr or "No sets found") print(not (not setsStr or setsStr == "") and setsStr or "No sets found")
end end
function AliasSpell(args) function AliasSpell(args)