ResurrectHome: Fix Force Server Home patch

This commit is contained in:
Nuckyz 2024-04-02 13:39:28 -03:00
parent c623e44786
commit 88f353e7f6
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -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()`
}
}
],