Merge remote-tracking branch 'origin/main'

This commit is contained in:
Lenni0451 2024-02-15 17:47:26 +01:00
commit 520e47b469
No known key found for this signature in database
GPG Key ID: 5D59B86635AD3F2F

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;
}