diff --git a/protocol/src/main/java/org/geysermc/mcprotocollib/network/tcp/TcpClientSession.java b/protocol/src/main/java/org/geysermc/mcprotocollib/network/tcp/TcpClientSession.java index bb84e14d2..e71dd4479 100644 --- a/protocol/src/main/java/org/geysermc/mcprotocollib/network/tcp/TcpClientSession.java +++ b/protocol/src/main/java/org/geysermc/mcprotocollib/network/tcp/TcpClientSession.java @@ -32,6 +32,7 @@ import org.geysermc.mcprotocollib.network.codec.PacketCodecHelper; import org.geysermc.mcprotocollib.network.helper.TransportHelper; import org.geysermc.mcprotocollib.network.packet.PacketProtocol; +import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -100,7 +101,7 @@ public void connect(boolean wait, boolean transferring) { .localAddress(bindAddress, bindPort) .handler(new ChannelInitializer<>() { @Override - public void initChannel(Channel channel) { + public void initChannel(@NotNull Channel channel) { PacketProtocol protocol = getPacketProtocol(); protocol.newClientSession(TcpClientSession.this, transferring);