From dab64ebb595a31da952d59d5d8ecf9aaaba9b979 Mon Sep 17 00:00:00 2001 From: WonderfulPanic <152610174+WonderfulPanic@users.noreply.github.com> Date: Wed, 17 Jan 2024 01:06:05 +1200 Subject: [PATCH] Fix player list header/footer not sending translated version (#1186) --- .../proxy/connection/client/ConnectedPlayer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 5bd49bd9e..e531c2101 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 @@ -418,7 +418,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player, this.playerListHeader = translatedHeader; this.playerListFooter = translatedFooter; if (this.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) >= 0) { - this.connection.write(HeaderAndFooter.create(header, footer, this.getProtocolVersion())); + this.connection.write(HeaderAndFooter.create( + translatedHeader, translatedFooter, this.getProtocolVersion())); } } @@ -1290,4 +1291,4 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player, connectWithIndication(); } } -} \ No newline at end of file +}