ShowHiddenThings: fix crash when viewing Mod View

This commit is contained in:
Vendicated 2025-08-07 04:24:34 +02:00
parent 164fd43cc4
commit 98efe13b97
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -73,7 +73,7 @@ export default definePlugin({
predicate: () => settings.store.showModView, predicate: () => settings.store.showModView,
replacement: { replacement: {
match: /(?<=\.highestRole\),)role:\i(?<=\[\i\.roles,\i\.highestRoleId,(\i)\].+)/, match: /(?<=\.highestRole\),)role:\i(?<=\[\i\.roles,\i\.highestRoleId,(\i)\].+)/,
replace: "role:$self.getHighestRole(arguments[0],$2)", replace: "role:$self.getHighestRole(arguments[0],$1)",
} }
}, },
// allows you to open mod view on yourself // allows you to open mod view on yourself