From a643f6373c70a5656ace65572536563c1e9b9499 Mon Sep 17 00:00:00 2001 From: Tianpao Date: Tue, 3 Feb 2026 18:47:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=97=A0=E6=B3=95=E4=BD=BF?= =?UTF-8?q?=E7=94=A8GS=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/utils/DeEarth.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/src/utils/DeEarth.ts b/backend/src/utils/DeEarth.ts index 71dc066..9b56edb 100644 --- a/backend/src/utils/DeEarth.ts +++ b/backend/src/utils/DeEarth.ts @@ -92,15 +92,15 @@ export class DeEarth { if (config.filter.dexpub) { logger.info("Starting dexpub check for client-side mods"); const dexpubMods = await this.checkDexpubForClientMods(); - clientMods.push(...dexpubMods.clientMods); const serverModsListSet = new Set(dexpubMods.serverMods); - for(let i=0;i>=clientMods.length - 1;i--){ + for(let i=clientMods.length - 1;i>=0;i--){ if (serverModsListSet.has(clientMods[i])){ clientMods.splice(i,1); } } + clientMods.push(...dexpubMods.clientMods); - logger.info("Dexpub check completed", { serverMods: dexpubMods.serverMods, clientMods: dexpubMods.clientMods }); + logger.info("Galaxy Square check completed", { serverMods: dexpubMods.serverMods, clientMods: dexpubMods.clientMods }); } const uniqueMods = [...new Set(clientMods)]; @@ -146,7 +146,6 @@ export class DeEarth { } } } - logger.info("Galaxy check client-side mods", { count: clientMods.length, mods: clientMods }); return { serverMods, clientMods }; }