Move CustomRPC fix

This commit is contained in:
Nuckyz 2025-01-27 20:15:43 -03:00
parent 76002fb2eb
commit aa64267ddb
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 9 additions and 11 deletions

View file

@ -46,6 +46,15 @@ export default definePlugin({
match: /!\(null==(\i)\|\|0===\i\|\|null==(\i)\|\|0===\i\)/,
replace: (_, width, height) => `!((null==${width}||0===${width})&&(null==${height}||0===${height}))`
}
},
// Make buttons show up for your own activities
{
find: ".party?(0",
all: true,
replacement: {
match: /\i\.id===\i\.id\?null:/,
replace: ""
}
}
],

View file

@ -399,17 +399,6 @@ export default definePlugin({
stop: () => setRpc(true),
settings,
patches: [
{
find: ".party?(0",
all: true,
replacement: {
match: /\i\.id===\i\.id\?null:/,
replace: ""
}
}
],
settingsAboutComponent: () => {
const activity = useAwaiter(createActivity);
const gameActivityEnabled = ShowCurrentGame.useSetting();