From 4a0847f06c911dd577bd6bf07b77130e98b33fd6 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Mon, 30 Jul 2018 18:51:53 -0400 Subject: [PATCH] Support 1.11.x and 1.12/1.12.1 --- .../proxy/protocol/StateRegistry.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java b/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java index 033665005..1532c9f03 100644 --- a/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java +++ b/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java @@ -65,13 +65,21 @@ public enum StateRegistry { map(0x34, MINECRAFT_1_12), map(0x35, MINECRAFT_1_12_2)); CLIENTBOUND.register(ScoreboardDisplay.class, ScoreboardDisplay::new, - map(0x3B, MINECRAFT_1_12_2)); + map(0x38, MINECRAFT_1_11), + map(0x3A, MINECRAFT_1_12), + map(0x3B, MINECRAFT_1_12_1)); CLIENTBOUND.register(ScoreboardObjective.class, ScoreboardObjective::new, - map(0x42, MINECRAFT_1_12_2)); + map(0x3F, MINECRAFT_1_11), + map(0x41, MINECRAFT_1_12), + map(0x42, MINECRAFT_1_12_1)); CLIENTBOUND.register(ScoreboardTeam.class, ScoreboardTeam::new, - map(0x44, MINECRAFT_1_12_2)); + map(0x41, MINECRAFT_1_11), + map(0x43, MINECRAFT_1_12), + map(0x44, MINECRAFT_1_12_1)); CLIENTBOUND.register(ScoreboardSetScore.class, ScoreboardSetScore::new, - map(0x45, MINECRAFT_1_12_2)); + map(0x42, MINECRAFT_1_11), + map(0x44, MINECRAFT_1_12), + map(0x45, MINECRAFT_1_12_1)); } }, LOGIN {