Merge pull request #84 from ND-Framework/fix/duplicate-licenses

fix: duplicate character licenses
This commit is contained in:
Andy authored and GitHub committed 2025-02-22 23:29:46 +01:00
commit 43f690e356
1 file changed
+13 -1
+13 -1
View File
@@ -221,7 +221,19 @@ local function createCharacterTable(info)
}
if licenses then
self.metadata.licenses[#licenses+1] = license
local found = false
for i=1, #licenses do
if licenses[i].type == licenseType then
self.metadata.licenses[i] = license
found = true
break
end
end
if not found then
self.metadata.licenses[#licenses+1] = license
end
else
self.metadata.licenses = {license}
end