mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-19 14:59:20 +00:00
Remove Geyser -> Bungee Floodgate data after use
This commit is contained in:
@@ -121,6 +121,8 @@ public class BungeeProxyDataHandler extends ChannelInboundHandlerAdapter {
|
||||
channelWrapper.setRemoteAddress(newIp);
|
||||
}
|
||||
|
||||
packet.setHost(handshakeData.getHostname());
|
||||
|
||||
if (handshakeData.getDisconnectReason() != null) {
|
||||
ctx.channel().attr(kickMessageAttribute).set(handshakeData.getDisconnectReason());
|
||||
return;
|
||||
|
||||
@@ -67,8 +67,7 @@ public class BungeeServerDataHandler extends ChannelOutboundHandlerAdapter {
|
||||
private final AttributeKey<FloodgatePlayer> playerAttribute;
|
||||
|
||||
@Override
|
||||
public void write(ChannelHandlerContext ctx, Object packet, ChannelPromise promise)
|
||||
throws Exception {
|
||||
public void write(ChannelHandlerContext ctx, Object packet, ChannelPromise promise) {
|
||||
if (packet instanceof Handshake) {
|
||||
// get the Proxy <-> Player channel from the Proxy <-> Server channel
|
||||
HandlerBoss handlerBoss = ctx.pipeline().get(HandlerBoss.class);
|
||||
|
||||
Reference in New Issue
Block a user