Skip to content

Commit

Permalink
fix: correct highlighter priority order
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Nov 3, 2024
1 parent b3e2b9f commit 96d6367
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ default Highlighter getHighlighter(@NotNull OnlineUser user) {
*/
default void registerHighlighter(@NotNull Highlighter highlighter) {
getHighlighters().add(highlighter);
getHighlighters().sort(Comparator.comparingInt(Highlighter::getPriority));
getHighlighters().sort(Comparator.comparingInt(Highlighter::getPriority).reversed());
getHighlighterCache().clear();
}

Expand Down

0 comments on commit 96d6367

Please sign in to comment.