mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-15 05:30:15 +02:00
check if packet is null
This commit is contained in:
parent
0d377ae0e3
commit
7e467615ee
@ -216,13 +216,15 @@ public class ClientConnection extends ChannelInboundHandlerAdapter {
|
||||
server.getConnections().addConnection(this);
|
||||
|
||||
writePacket(PACKET_JOIN_GAME);
|
||||
writePacket(PACKET_PLUGIN_MESSAGE);
|
||||
writePacket(PACKET_PLAYER_ABILITIES);
|
||||
writePacket(PACKET_PLAYER_POS);
|
||||
writePacket(PACKET_PLAYER_INFO);
|
||||
|
||||
if (clientVersion.moreOrEqual(Version.V1_13)){
|
||||
writePacket(PACKET_DECLARE_COMMANDS);
|
||||
|
||||
if(PACKET_PLUGIN_MESSAGE != null)
|
||||
writePacket(PACKET_PLUGIN_MESSAGE);
|
||||
}
|
||||
|
||||
if (PACKET_BOSS_BAR != null && clientVersion.moreOrEqual(Version.V1_9))
|
||||
|
Loading…
x
Reference in New Issue
Block a user