Convert duplicate mods into comma separated string prior to being logged in checkForDuplicateMods()
This commit is contained in:
parent
46dc5bb36b
commit
28ca90b02c
@ -186,9 +186,9 @@ export class PreAkiModLoader implements IModLoader
|
|||||||
modNames.push(`${mod.author}-${mod.name}`);
|
modNames.push(`${mod.author}-${mod.name}`);
|
||||||
}
|
}
|
||||||
const dupes = this.getDuplicates(modNames);
|
const dupes = this.getDuplicates(modNames);
|
||||||
if (dupes && dupes.length > 0)
|
if (dupes?.length > 0)
|
||||||
{
|
{
|
||||||
this.logger.error(this.localisationService.getText("modloader-x_duplicates_found", dupes));
|
this.logger.error(this.localisationService.getText("modloader-x_duplicates_found", dupes.join(",")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user