From 017651358d8aeefdadc0f3973f1fe4f394e9b14d Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 6 Jul 2022 19:15:33 -0500 Subject: It compiles --- azalea-client/src/client.rs | 2 +- .../src/packets/game/clientbound_custom_chat_completions_packet.rs | 2 +- .../src/packets/game/clientbound_move_entity_posrot_packet.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 2bc73551..8b586b0c 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -545,7 +545,7 @@ impl Client { world.move_entity_with_delta(p.entity_id, &p.delta)?; } - GamePacket::ClientboundMoveEntityPosRotPacket(p) => { + GamePacket::ClientboundMoveEntityPosrotPacket(p) => { let mut state_lock = state.lock()?; let world = state_lock.world.as_mut().unwrap(); diff --git a/azalea-protocol/src/packets/game/clientbound_custom_chat_completions_packet.rs b/azalea-protocol/src/packets/game/clientbound_custom_chat_completions_packet.rs index 94c90039..06a641f1 100644 --- a/azalea-protocol/src/packets/game/clientbound_custom_chat_completions_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_custom_chat_completions_packet.rs @@ -7,7 +7,7 @@ pub struct ClientboundCustomChatCompletionsPacket { pub entries: Vec, } -#[derive(Clone, Debug, McBuf)] +#[derive(Clone, Debug, McBuf, Copy)] pub enum Action { Add = 0, Remove = 1, diff --git a/azalea-protocol/src/packets/game/clientbound_move_entity_posrot_packet.rs b/azalea-protocol/src/packets/game/clientbound_move_entity_posrot_packet.rs index e3422ac0..3dbfaff6 100644 --- a/azalea-protocol/src/packets/game/clientbound_move_entity_posrot_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_move_entity_posrot_packet.rs @@ -4,7 +4,7 @@ use packet_macros::GamePacket; /// This packet is sent by the server when an entity moves less then 8 blocks. #[derive(Clone, Debug, McBuf, GamePacket)] -pub struct ClientboundMoveEntityPosRotPacket { +pub struct ClientboundMoveEntityPosrotPacket { #[var] pub entity_id: u32, pub delta: PositionDelta8, -- cgit v1.2.3