Add support of 1.14.1/2 with ViaVersion extension.

This commit is contained in:
Aurélien 2019-05-31 15:52:53 +02:00 committed by GitHub
parent 01c5c5dc65
commit dd5d8af946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,11 +36,9 @@ public class Protocol {
*/ */
public static String getMCVersion(int protocolVersion) { public static String getMCVersion(int protocolVersion) {
switch (protocolVersion) { switch (protocolVersion) {
case 482: case 485:
case 481: return "1.14.2";
case 480: case 480:
case 479:
case 478:
return "1.14.1"; return "1.14.1";
case 477: case 477:
return "1.14"; return "1.14";
@ -75,7 +73,7 @@ public class Protocol {
case 4: case 4:
return "1.7.5"; return "1.7.5";
default: default:
return "Newer than 1.14 (" + protocolVersion + ")"; return "Newer than 1.14.2 (" + protocolVersion + ")";
} }
} }
} }