Convert duplicate mods into comma separated string prior to being logged in checkForDuplicateMods()

This commit is contained in:
Dev 2023-06-26 07:39:22 +01:00
parent 46dc5bb36b
commit 28ca90b02c

View File

@ -186,9 +186,9 @@ export class PreAkiModLoader implements IModLoader
modNames.push(`${mod.author}-${mod.name}`);
}
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(",")));
}
}