From 28ca90b02c4366e5b90c0692b4044cd42a380f1b Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 26 Jun 2023 07:39:22 +0100 Subject: [PATCH] Convert duplicate mods into comma separated string prior to being logged in `checkForDuplicateMods()` --- project/src/loaders/PreAkiModLoader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/loaders/PreAkiModLoader.ts b/project/src/loaders/PreAkiModLoader.ts index 064b5ff1..5abda782 100644 --- a/project/src/loaders/PreAkiModLoader.ts +++ b/project/src/loaders/PreAkiModLoader.ts @@ -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(","))); } }