diff --git a/src/plugins/showHiddenThings/index.ts b/src/plugins/showHiddenThings/index.ts index c39dccc4..6d2ca713 100644 --- a/src/plugins/showHiddenThings/index.ts +++ b/src/plugins/showHiddenThings/index.ts @@ -73,7 +73,7 @@ export default definePlugin({ predicate: () => settings.store.showModView, replacement: { 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