From 28b6f6dcefd686a3c3638ee164aef41d051e396c Mon Sep 17 00:00:00 2001 From: Corey Shupe Date: Tue, 7 Jun 2022 21:11:53 -0400 Subject: [PATCH] Hotfix/patch modern forwarding v2 (#727) --- .../proxy/connection/backend/LoginSessionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/LoginSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/LoginSessionHandler.java index 00ed17a69..0a12ab5d8 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/LoginSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/LoginSessionHandler.java @@ -171,7 +171,7 @@ public class LoginSessionHandler implements MinecraftSessionHandler { ByteBuf forwarded = Unpooled.buffer(2048); try { int forwardingVersion = version.compareTo(ProtocolVersion.MINECRAFT_1_19) >= 0 && playerKey != null - ? VelocityConstants.MODERN_FORWARDING_WITH_KEY : VelocityConstants.MODERN_FORWARDING_DEFAULT; + ? VelocityConstants.MODERN_FORWARDING_DEFAULT : VelocityConstants.MODERN_FORWARDING_DEFAULT; ProtocolUtils.writeVarInt(forwarded, forwardingVersion); ProtocolUtils.writeString(forwarded, address);