From 276a6bd00d22129669a8b08bf8a5e384b50d0a2b Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Thu, 19 Sep 2024 20:44:36 +0200 Subject: [PATCH] Inline lambda --- .../java/org/geysermc/geyser/network/netty/LocalSession.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/network/netty/LocalSession.java b/core/src/main/java/org/geysermc/geyser/network/netty/LocalSession.java index 5651fefcd..d9e450c62 100644 --- a/core/src/main/java/org/geysermc/geyser/network/netty/LocalSession.java +++ b/core/src/main/java/org/geysermc/geyser/network/netty/LocalSession.java @@ -155,9 +155,7 @@ public final class LocalSession extends TcpSession { HAProxyProtocolVersion.V2, HAProxyCommand.PROXY, proxiedProtocol, clientAddress.getAddress().getHostAddress(), remoteAddress.getAddress().getHostAddress(), clientAddress.getPort(), remoteAddress.getPort() - )).addListener(future -> { - channel.pipeline().remove("proxy-protocol-encoder"); - }); + )).addListener(future -> channel.pipeline().remove("proxy-protocol-encoder")); } /**