Skip to content

Commit bfdc1ae

Browse files
committed
Fix deprecations in standalone server
1 parent c42948b commit bfdc1ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Server/src/main/java/net/minecrell/serverlistplus/server/network/ClientHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ public class ClientHandler extends ChannelInboundHandlerAdapter implements Packe
2525
private StatusClient client = new StatusClient();
2626

2727
public static ProtocolState getState(ChannelHandlerContext ctx) {
28-
return ctx.attr(PROTOCOL_STATE).get();
28+
return ctx.channel().attr(PROTOCOL_STATE).get();
2929
}
3030

3131
public static void setState(ChannelHandlerContext ctx, ProtocolState state) {
32-
ctx.attr(PROTOCOL_STATE).set(state);
32+
ctx.channel().attr(PROTOCOL_STATE).set(state);
3333
}
3434

3535
private void checkState(ChannelHandlerContext ctx, ProtocolState state) {

0 commit comments

Comments
 (0)