Skip to content

Commit

Permalink
Update LoginSuccess.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Outfluencer authored Apr 18, 2024
1 parent 06bfa0d commit a526241
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protoco
// remove in next minecraft release
if ( protocolVersion >= ProtocolConstants.MINECRAFT_1_20_5 )
{
// This boolean specifies whether the client should
// disconnect on its own if it receives invalid data from the server
buf.readBoolean();
}
}
Expand All @@ -63,6 +65,8 @@ public void write(ByteBuf buf, ProtocolConstants.Direction direction, int protoc
if ( protocolVersion >= ProtocolConstants.MINECRAFT_1_20_5 )
{
// vanilla sends true so we also send true ( chocolate > vanilla )
// This boolean specifies whether the client should
// disconnect on its own if it receives invalid data from the server
buf.writeBoolean( true );
}
}
Expand Down

0 comments on commit a526241

Please sign in to comment.