13
0
geforkt von Mirrors/Velocity

Really Velocity 1.1.1. Fix a missed case of 7bec4b2f1.

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-10-28 19:06:43 -04:00
Ursprung 3038152852
Commit ba8d6fe42a

Datei anzeigen

@ -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());
}