Skip to content

Commit

Permalink
Fixed auto detect breaking version comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Feb 15, 2024
1 parent 9fa0ec0 commit cfb2ca5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ public class ProtocolTranslator {
protected Comparator<ProtocolVersion> customComparator() {
return (o1, o2) -> {
if (o1 == AUTO_DETECT_PROTOCOL) {
return -1;
} else if (o2 == AUTO_DETECT_PROTOCOL) {
return 1;
} else if (o2 == AUTO_DETECT_PROTOCOL) {
return -1;
} else {
return 0;
}
Expand Down

0 comments on commit cfb2ca5

Please sign in to comment.