Fixed auto detect breaking version comparisons

This commit is contained in:
RaphiMC 2024-02-15 17:32:26 +01:00
parent 5e0b5a9a69
commit 9d940232d8
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -43,9 +43,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;
}