mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-12-22 16:38:04 +01:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
520e47b469
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user