From 37999ed32e5c1749aff02d58363224a69633c753 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 10 May 2019 02:51:00 -0400 Subject: [PATCH] Support 1.14-pre2 --- .../com/velocitypowered/api/network/ProtocolVersion.java | 5 +++-- .../com/velocitypowered/proxy/protocol/StateRegistry.java | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/com/velocitypowered/api/network/ProtocolVersion.java b/api/src/main/java/com/velocitypowered/api/network/ProtocolVersion.java index fcecd9018..b71925831 100644 --- a/api/src/main/java/com/velocitypowered/api/network/ProtocolVersion.java +++ b/api/src/main/java/com/velocitypowered/api/network/ProtocolVersion.java @@ -27,7 +27,8 @@ public enum ProtocolVersion { MINECRAFT_1_13(393, "1.13"), 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(477, "1.14"), + MINECRAFT_1_14_1(479, "1.14.1-pre2"); private final int protocol; private final String name; @@ -39,7 +40,7 @@ public enum ProtocolVersion { /** * Represents the highest supported version. */ - public static final ProtocolVersion MAXIMUM_VERSION = MINECRAFT_1_14; + public static final ProtocolVersion MAXIMUM_VERSION = MINECRAFT_1_14_1; /** * The user-friendly representation of the lowest and highest supported versions. diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java index 1944e9919..b34f47518 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java @@ -10,6 +10,7 @@ import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_13; import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_13_1; import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_13_2; import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_14; +import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_14_1; import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_8; import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_9; import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_9_1; @@ -253,7 +254,7 @@ public enum StateRegistry { LINKED_PROTOCOL_VERSIONS.put(MINECRAFT_1_12, EnumSet.of(MINECRAFT_1_12_1)); LINKED_PROTOCOL_VERSIONS.put(MINECRAFT_1_12_1, EnumSet.of(MINECRAFT_1_12_2)); LINKED_PROTOCOL_VERSIONS.put(MINECRAFT_1_13, EnumSet.of(MINECRAFT_1_13_1, MINECRAFT_1_13_2)); - //for 1.14 ??? + LINKED_PROTOCOL_VERSIONS.put(MINECRAFT_1_14, EnumSet.of(MINECRAFT_1_14_1)); } private final Direction direction;