From 59c84ebb5d274b679e79915f583422fe736379b4 Mon Sep 17 00:00:00 2001 From: splatter Date: Sun, 27 Oct 2024 15:32:44 +0000 Subject: [PATCH] fix bug --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index d2b7a27..2bec7ed 100644 --- a/index.ts +++ b/index.ts @@ -67,7 +67,7 @@ function getEnabledPlugins() { let userpluginsCount = 0; Object.entries(Vencord.Plugins.plugins).forEach(([key, value]) => { - if (value.started) if (PluginMeta[value.name].userPlugin) userpluginsCount++; else counter++; + if (value.started) if (PluginMeta[value.name]?.userPlugin) userpluginsCount++; else counter++; }); return `${counter} (official)` + (userpluginsCount ? `, ${userpluginsCount} (userplugins)` : "");