Questify: Fix Crashing

This commit is contained in:
thororen1234 2026-04-23 19:15:21 -04:00
parent 1f0faa7fba
commit aeba0b79e9
No known key found for this signature in database

View file

@ -1694,7 +1694,7 @@ export default definePlugin({
// Run Questify's sort function every time due to hook requirements but return
// early if not applicable. If the sort method is set to "Questify", replace the
// Quests with the sorted ones. Also, setup a trigger to rerender the memo.
match: /(?<=userStatus\?.claimedAt.{0,50})(\i.useMemo\(\(\)=>{)(?=if\(0===(\i).length\))/,
match: /(?<=\.filters\),.{0,30})(\i.useMemo\(\(\)=>{)(?=if\(0===(\i).length\))/,
replace: "questRerenderTrigger=$self.useQuestRerender(),questifySorted=$self.sortQuests($2,arguments[1].sortMethod!==\"questify\"),$1if(arguments[1].sortMethod===\"questify\"){$2=questifySorted;};"
},
{