fix: duplicate character licenses

This commit is contained in:
Andyyy7666
2025-02-22 23:29:29 +01:00
parent 5928d89edf
commit e883c4e64f

View File

@@ -221,7 +221,19 @@ local function createCharacterTable(info)
}
if licenses then
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