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

fix: duplicate character licenses
This commit is contained in:
Andy
2025-02-22 23:29:46 +01:00
committed by GitHub

View File

@@ -221,7 +221,19 @@ local function createCharacterTable(info)
} }
if licenses then 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 else
self.metadata.licenses = {license} self.metadata.licenses = {license}
end end