From f9e4b65713bbacabcd54416a388a92b90f56ab47 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 26 Jun 2025 12:32:01 +0930 Subject: start adding packet_order test --- azalea-client/src/plugins/packet/game/mod.rs | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'azalea-client/src/plugins/packet') diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs index 1ea4db10..d9940937 100644 --- a/azalea-client/src/plugins/packet/game/mod.rs +++ b/azalea-client/src/plugins/packet/game/mod.rs @@ -12,7 +12,10 @@ use azalea_entity::{ indexing::{EntityIdIndex, EntityUuidIndex}, metadata::{Health, apply_metadata}, }; -use azalea_protocol::packets::{ConnectionProtocol, game::*}; +use azalea_protocol::{ + common::movements::MoveFlags, + packets::{ConnectionProtocol, game::*}, +}; use azalea_world::{InstanceContainer, InstanceName, MinecraftEntityId, PartialInstance}; use bevy_ecs::{prelude::*, system::SystemState}; pub use events::*; @@ -319,15 +322,6 @@ impl GamePacketHandler<'_> { .entity(self.player) .insert(LoadedBy(HashSet::from_iter(vec![self.player]))); } - - // send the client information that we have set - debug!( - "Sending client information because login: {:?}", - client_information - ); - commands.trigger(SendPacketEvent::new(self.player, - azalea_protocol::packets::game::s_client_information::ServerboundClientInformation { client_information: client_information.clone() }, - )); }, ); } @@ -443,8 +437,7 @@ impl GamePacketHandler<'_> { ServerboundMovePlayerPosRot { pos: **position, look_direction: *direction, - // this is always false - on_ground: false, + flags: MoveFlags::default(), }, )); }); -- cgit v1.2.3