mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-16 21:46:03 +01:00
Merge pull request #84 from ND-Framework/fix/duplicate-licenses
fix: duplicate character licenses
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user