diff options
| author | mat <github@matdoes.dev> | 2022-07-29 15:32:04 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-07-29 15:32:04 -0500 |
| commit | 1b602d0be793394ac2b0d009b77c6a877a4efb7d (patch) | |
| tree | 6d781edb998a362d368b6c65a86af84a91f747ba /azalea-protocol/src/packets/handshake | |
| parent | 4ee4687053b7442f518823b08099c156f4da4e83 (diff) | |
| download | azalea-drasl-1b602d0be793394ac2b0d009b77c6a877a4efb7d.tar.xz | |
fix errors and warnings
Diffstat (limited to 'azalea-protocol/src/packets/handshake')
| -rwxr-xr-x | azalea-protocol/src/packets/handshake/client_intention_packet.rs | 4 | ||||
| -rwxr-xr-x | azalea-protocol/src/packets/handshake/mod.rs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/azalea-protocol/src/packets/handshake/client_intention_packet.rs b/azalea-protocol/src/packets/handshake/client_intention_packet.rs index 804778a0..ef47bba3 100755 --- a/azalea-protocol/src/packets/handshake/client_intention_packet.rs +++ b/azalea-protocol/src/packets/handshake/client_intention_packet.rs @@ -1,9 +1,9 @@ use crate::packets::ConnectionProtocol; use azalea_buf::McBuf; -use packet_macros::ClientboundHandshakePacket; +use packet_macros::ServerboundHandshakePacket; use std::hash::Hash; -#[derive(Hash, Clone, Debug, McBuf, ClientboundHandshakePacket)] +#[derive(Hash, Clone, Debug, McBuf, ServerboundHandshakePacket)] pub struct ClientIntentionPacket { #[var] pub protocol_version: u32, diff --git a/azalea-protocol/src/packets/handshake/mod.rs b/azalea-protocol/src/packets/handshake/mod.rs index 88d9939b..8fd12529 100755 --- a/azalea-protocol/src/packets/handshake/mod.rs +++ b/azalea-protocol/src/packets/handshake/mod.rs @@ -4,8 +4,8 @@ use packet_macros::declare_state_packets; declare_state_packets!( HandshakePacket, - Serverbound => {}, - Clientbound => { + Serverbound => { 0x00: client_intention_packet::ClientIntentionPacket, - } + }, + Clientbound => {} ); |
