Skip to content

Commit

Permalink
check if packet is null
Browse files Browse the repository at this point in the history
  • Loading branch information
MiGoYAm committed Dec 12, 2021
1 parent 0d377ae commit 7e46761
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,15 @@ private void fireLoginSuccess() {
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))
Expand Down

0 comments on commit 7e46761

Please sign in to comment.