You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/hookpriority.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ There are tools for mod compatibilities! Please take advantage of them.
75
75
76
76
- If you want your function to run _after_ the original function, but _before_ other hooks, use `Priority::First` with `setHookPriorityPost` and call the original function at the start.
77
77
78
-
- If you're _reimplementing_ the original function and do not call the original, use `Priority::Last` with `setHookPriorityPre`.
78
+
- If you're _reimplementing_ the original function and do not call the original, use `Priority::Replace` with `setHookPriorityPre`.
79
79
80
80
Obviously, these are not strict rules. Feel free to choose the hook priority that best fits your situation.
0 commit comments