From f27b7e4e2f13ef0af2861e8da47a630240f9919a Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 26 Aug 2018 23:47:23 -0400 Subject: [PATCH] Fix improper packet mapping for chat messages. This fixes the statistics display on the client. --- .../java/com/velocitypowered/proxy/protocol/StateRegistry.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 701ec301d..d45d94040 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java @@ -45,7 +45,7 @@ public enum StateRegistry { map(0x01, MINECRAFT_1_8, false), map(0x02, MINECRAFT_1_9, false), map(0x03, MINECRAFT_1_12, false), - map(0x02, MINECRAFT_1_12_2, false), + map(0x02, MINECRAFT_1_12_1, false), map(0x02, MINECRAFT_1_13, false)); SERVERBOUND.register(ClientSettings.class, ClientSettings::new, map(0x15, MINECRAFT_1_8, false), @@ -198,7 +198,6 @@ public enum StateRegistry { return result; } - public

void register(Class

clazz, Supplier

packetSupplier, PacketMapping... mappings) { if (mappings.length == 0) { throw new IllegalArgumentException("At least one mapping must be provided.");