From 2d8446b4e3feec53a54e1a3338561c5ac2994d39 Mon Sep 17 00:00:00 2001 From: Matsv Date: Tue, 1 Aug 2017 15:34:22 +0200 Subject: [PATCH] Start 1.12.1 development --- .../api/protocol/ProtocolRegistry.java | 3 ++- .../ViaVersion/api/protocol/ProtocolVersion.java | 2 ++ .../Protocol1_12_1TO1_12.java | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12_1to1_12/Protocol1_12_1TO1_12.java diff --git a/common/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolRegistry.java b/common/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolRegistry.java index f363cbfe1..10aba05ed 100644 --- a/common/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolRegistry.java +++ b/common/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolRegistry.java @@ -41,8 +41,9 @@ public class ProtocolRegistry { registerProtocol(new Protocol1_11To1_10(), Collections.singletonList(ProtocolVersion.v1_11.getId()), ProtocolVersion.v1_10.getId()); registerProtocol(new Protocol1_11_1To1_11(), Collections.singletonList(ProtocolVersion.v1_11_1.getId()), ProtocolVersion.v1_11.getId()); - registerProtocol(new Protocol1_12To1_11_1(), Collections.singletonList(ProtocolVersion.v1_12.getId()), ProtocolVersion.v1_11_1.getId()); + registerProtocol(new Protocol1_12To1_11_1(), Collections.singletonList(ProtocolVersion.v1_12.getId()), ProtocolVersion.v1_11_1.getId()); + registerProtocol(new Protocol1_12To1_11_1(), Collections.singletonList(ProtocolVersion.v1_12_1.getId()), ProtocolVersion.v1_12.getId()); } /** diff --git a/common/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolVersion.java b/common/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolVersion.java index 158a808fe..019c0d1ae 100644 --- a/common/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolVersion.java +++ b/common/src/main/java/us/myles/ViaVersion/api/protocol/ProtocolVersion.java @@ -30,6 +30,7 @@ public class ProtocolVersion { public static final ProtocolVersion v1_11; public static final ProtocolVersion v1_11_1; public static final ProtocolVersion v1_12; + public static final ProtocolVersion v1_12_1; public static final ProtocolVersion unknown; private final int id; @@ -56,6 +57,7 @@ public class ProtocolVersion { register(v1_11 = new ProtocolVersion(315, "1.11")); register(v1_11_1 = new ProtocolVersion(316, "1.11.1")); register(v1_12 = new ProtocolVersion(335, "1.12")); + register(v1_12_1 = new ProtocolVersion(336, "17w31a")); register(unknown = new ProtocolVersion(-1, "UNKNOWN")); } diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12_1to1_12/Protocol1_12_1TO1_12.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12_1to1_12/Protocol1_12_1TO1_12.java new file mode 100644 index 000000000..bba2a63f7 --- /dev/null +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12_1to1_12/Protocol1_12_1TO1_12.java @@ -0,0 +1,16 @@ +package us.myles.ViaVersion.protocols.protocol1_12_1to1_12; + +import us.myles.ViaVersion.api.data.UserConnection; +import us.myles.ViaVersion.api.protocol.Protocol; + +public class Protocol1_12_1TO1_12 extends Protocol { + @Override + protected void registerPackets() { + + } + + @Override + public void init(UserConnection userConnection) { + + } +}