1.14.2 support

This commit is contained in:
Leymooo
2019-05-27 16:21:32 +03:00
committed by Leymooo
parent b5f099824d
commit 85c6238d68
2 changed files with 11 additions and 7 deletions

View File

@@ -28,8 +28,9 @@ public enum ProtocolVersion {
MINECRAFT_1_13_1(401, "1.13.1"),
MINECRAFT_1_13_2(404, "1.13.2"),
MINECRAFT_1_14(477, "1.14"),
MINECRAFT_1_14_1(480, "1.14.1");
MINECRAFT_1_14_1(480, "1.14.1"),
MINECRAFT_1_14_2(485, "1.14.2");
private final int protocol;
private final String name;
@@ -40,7 +41,7 @@ public enum ProtocolVersion {
/**
* Represents the highest supported version.
*/
public static final ProtocolVersion MAXIMUM_VERSION = MINECRAFT_1_14_1;
public static final ProtocolVersion MAXIMUM_VERSION = values()[values().length - 1];
/**
* The user-friendly representation of the lowest and highest supported versions.