From 41f66c7c04957a43424f930657be7c689c14e2f4 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 15 Oct 2021 10:16:34 -0400 Subject: [PATCH] Also guard sendTitlePart behind a protocol version check. --- .../proxy/connection/client/ConnectedPlayer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java index 6eef94294..88bc3dc24 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java @@ -404,6 +404,10 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player { throw new NullPointerException("value"); } + if (this.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) < 0) { + return; + } + GsonComponentSerializer serializer = ProtocolUtils.getJsonChatSerializer(this .getProtocolVersion());