From 4108f84bfb981d3e27674154a33757b7fe8aa8ec Mon Sep 17 00:00:00 2001 From: kwaroran Date: Fri, 6 Sep 2024 02:45:31 +0900 Subject: [PATCH] revert module loading --- src/ts/process/modules.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ts/process/modules.ts b/src/ts/process/modules.ts index 8eb274d1..0d4800a2 100644 --- a/src/ts/process/modules.ts +++ b/src/ts/process/modules.ts @@ -246,12 +246,10 @@ function getModuleById(id:string){ function getModuleByIds(ids:string[]){ let modules:RisuModule[] = [] const db = get(DataBase) - for(let i=0;i m.id === ids[i] || (m.namespace === ids[i] && m.namespace)) + if(module){ + modules.push(module) } } return modules