diff options
| author | Luis <luis@lu15.dev> | 2024-04-27 07:03:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-27 01:03:20 -0500 |
| commit | 6553d9510ddc52469dd7557aa9675982cb5187ab (patch) | |
| tree | e2d0cc0e36be8b2d4be5857c2790cb79eb84dece /azalea-client/src/client.rs | |
| parent | 84f66a55a5e5b1618111e522c25704ac96d45806 (diff) | |
| download | azalea-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-client/src/client.rs')
| -rw-r--r-- | azalea-client/src/client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 39cc504c..1f9685ec 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -51,7 +51,7 @@ use azalea_protocol::{ serverbound_login_acknowledged_packet::ServerboundLoginAcknowledgedPacket, ClientboundLoginPacket, }, - ConnectionProtocol, PROTOCOL_VERSION, + ConnectionProtocol, ClientIntention, PROTOCOL_VERSION, }, resolver, ServerAddress, }; @@ -358,7 +358,7 @@ impl Client { protocol_version: PROTOCOL_VERSION, hostname: address.host.clone(), port: address.port, - intention: ConnectionProtocol::Login, + intention: ClientIntention::Login, } .get(), ) |
