diff options
| author | mat <git@matdoes.dev> | 2024-11-28 20:33:39 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-11-28 20:33:39 +0000 |
| commit | f364ad6b210f93f53b6ee8f73c259622e9f37421 (patch) | |
| tree | 4ed81d4d3929b543253d72f411d1a7cab6967c74 /azalea-protocol/src/connect.rs | |
| parent | ae5c0ea8e5e1ac9571b78281c26b7d63d110f5e5 (diff) | |
| download | azalea-drasl-f364ad6b210f93f53b6ee8f73c259622e9f37421.tar.xz | |
switch some packet structs to unit structs
Diffstat (limited to 'azalea-protocol/src/connect.rs')
| -rwxr-xr-x | azalea-protocol/src/connect.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index f64d9eb8..f33ce2a5 100755 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -61,6 +61,7 @@ pub struct WriteConnection<W: ProtocolPacket> { /// resolver, /// connect::Connection, /// packets::{ +/// self, /// ClientIntention, PROTOCOL_VERSION, /// login::{ /// ClientboundLoginPacket, @@ -115,7 +116,13 @@ pub struct WriteConnection<W: ProtocolPacket> { /// return Err("login disconnect".into()); /// } /// ClientboundLoginPacket::CustomQuery(p) => {} -/// ClientboundLoginPacket::CookieRequest(_) => {} +/// ClientboundLoginPacket::CookieRequest(p) => { +/// conn.write(packets::login::ServerboundCookieResponse { +/// key: p.key, +/// payload: None, +/// }) +/// .await?; +/// } /// } /// }; /// |
