From ba8d6fe42a939d0cdf244d0d3866ddf4c9148354 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Wed, 28 Oct 2020 19:06:43 -0400 Subject: [PATCH] Really Velocity 1.1.1. Fix a missed case of 7bec4b2f1. --- .../proxy/connection/client/InitialConnectSessionHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/InitialConnectSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/InitialConnectSessionHandler.java index 1d1485ef8..188ae3537 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/InitialConnectSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/InitialConnectSessionHandler.java @@ -1,6 +1,7 @@ package com.velocitypowered.proxy.connection.client; import com.velocitypowered.proxy.connection.MinecraftSessionHandler; +import com.velocitypowered.proxy.connection.backend.BungeeCordMessageResponder; import com.velocitypowered.proxy.connection.backend.VelocityServerConnection; import com.velocitypowered.proxy.protocol.packet.PluginMessage; import com.velocitypowered.proxy.protocol.util.PluginMessageUtil; @@ -25,6 +26,8 @@ public class InitialConnectSessionHandler implements MinecraftSessionHandler { player.getKnownChannels().addAll(PluginMessageUtil.getChannels(packet)); } else if (PluginMessageUtil.isUnregister(packet)) { player.getKnownChannels().removeAll(PluginMessageUtil.getChannels(packet)); + } else if (BungeeCordMessageResponder.isBungeeCordMessage(packet)) { + return true; } serverConn.ensureConnected().write(packet.retain()); }