[Merge] Add support of 1.14 with ViaVersion extension. (#1031)

This commit is contained in:
Risto Lahtela 2019-05-07 18:16:14 +03:00 committed by GitHub
commit 799c26ba99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,8 @@ public class Protocol {
*/
public static String getMCVersion(int protocolVersion) {
switch (protocolVersion) {
case 477:
return "1.14"
case 404:
return "1.13.2";
case 401:
@ -67,7 +69,7 @@ public class Protocol {
case 4:
return "1.7.5";
default:
return "Newer than 1.13.2 (" + protocolVersion + ")";
return "Newer than 1.14 (" + protocolVersion + ")";
}
}
}