From 204a81b0ea33751bbd479c91fe82fd61688a5091 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Thu, 10 Jun 2021 10:50:07 +0200 Subject: [PATCH] Add 1.17 to legacy api package ProtocolVersion --- .../java/us/myles/ViaVersion/api/protocol/ProtocolVersion.java | 1 + .../src/main/java/com/viaversion/viaversion/BungeePlugin.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api-legacy/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolVersion.java b/api-legacy/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolVersion.java index ddfbb2a83..5068e8b0e 100644 --- a/api-legacy/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolVersion.java +++ b/api-legacy/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolVersion.java @@ -79,6 +79,7 @@ public class ProtocolVersion { public static final ProtocolVersion v1_16_2 = register(751, "1.16.2"); public static final ProtocolVersion v1_16_3 = register(753, "1.16.3"); public static final ProtocolVersion v1_16_4 = register(754, "1.16.4/5", new VersionRange("1.16", 4, 5)); + public static final ProtocolVersion v1_17 = register(755, "1.17"); public static final ProtocolVersion unknown = register(-1, "UNKNOWN"); public static ProtocolVersion register(int version, String name) { diff --git a/bungee/src/main/java/com/viaversion/viaversion/BungeePlugin.java b/bungee/src/main/java/com/viaversion/viaversion/BungeePlugin.java index 1032b7468..39dda6eeb 100644 --- a/bungee/src/main/java/com/viaversion/viaversion/BungeePlugin.java +++ b/bungee/src/main/java/com/viaversion/viaversion/BungeePlugin.java @@ -56,7 +56,7 @@ public class BungeePlugin extends Plugin implements ViaPlatform, @Override public void onLoad() { try { - ProtocolConstants.class.getField("MINECRAFT_1_16_4"); + ProtocolConstants.class.getField("MINECRAFT_1_17"); } catch (NoSuchFieldException e) { getLogger().warning(" / \\"); getLogger().warning(" / \\");