From 88f353e7f6e40f561c8ed7150fcdc32ed4491f18 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 2 Apr 2024 13:39:28 -0300 Subject: [PATCH] ResurrectHome: Fix Force Server Home patch --- src/plugins/resurrectHome/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/resurrectHome/index.tsx b/src/plugins/resurrectHome/index.tsx index f48debc76..24cdf2b02 100644 --- a/src/plugins/resurrectHome/index.tsx +++ b/src/plugins/resurrectHome/index.tsx @@ -89,8 +89,8 @@ export default definePlugin({ { find: "61eef9_2", replacement: { - match: /(?<=getMutableGuildChannelsForGuild\(\i\)\);)(?=if\(null==\i\|\|)/, - replace: "if($self.useForceServerHome())return false;" + match: /getMutableGuildChannelsForGuild\(\i\);return\(0,\i\.useStateFromStores\).+?\]\)(?=}function)/, + replace: m => `${m}&&!$self.useForceServerHome()` } } ],