aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/connect.rs
diff options
context:
space:
mode:
authorLuis <luis@lu15.dev>2024-04-27 07:03:20 +0100
committerGitHub <noreply@github.com>2024-04-27 01:03:20 -0500
commit6553d9510ddc52469dd7557aa9675982cb5187ab (patch)
treee2d0cc0e36be8b2d4be5857c2790cb79eb84dece /azalea-protocol/src/connect.rs
parent84f66a55a5e5b1618111e522c25704ac96d45806 (diff)
downloadazalea-drasl-6553d9510ddc52469dd7557aa9675982cb5187ab.tar.xz
Use ClientIntention over ConnectionProtocol for ClientIntentionPacket (#143)
* fix!: use ClientIntention over ConnectionProtocol for ClientIntentionPacket * chore: remove McBufRead/Writable from ConnectionProtocol * chore: use From over Into for ClientIntention to ConnectionProtocol conversion * chore: organise imports in existing style
Diffstat (limited to 'azalea-protocol/src/connect.rs')
-rwxr-xr-xazalea-protocol/src/connect.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs
index cf98e419..691d25c0 100755
--- a/azalea-protocol/src/connect.rs
+++ b/azalea-protocol/src/connect.rs
@@ -61,7 +61,7 @@ pub struct WriteConnection<W: ProtocolPacket> {
/// resolver,
/// connect::Connection,
/// packets::{
-/// ConnectionProtocol, PROTOCOL_VERSION,
+/// ClientIntention, PROTOCOL_VERSION,
/// login::{
/// ClientboundLoginPacket,
/// serverbound_hello_packet::ServerboundHelloPacket,
@@ -82,7 +82,7 @@ pub struct WriteConnection<W: ProtocolPacket> {
/// protocol_version: PROTOCOL_VERSION,
/// hostname: resolved_address.ip().to_string(),
/// port: resolved_address.port(),
-/// intention: ConnectionProtocol::Login,
+/// intention: ClientIntention::Login,
/// }
/// .get(),
/// )