From 9fa09259aa9daa9119d95f4b5634d017c0262596 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 18 Mar 2026 11:07:31 +0330 Subject: merge logic for the three move_entity packets --- azalea-client/tests/simulation/move_despawned_entity.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'azalea-client/tests/simulation') diff --git a/azalea-client/tests/simulation/move_despawned_entity.rs b/azalea-client/tests/simulation/move_despawned_entity.rs index 57ee3e37..30b326f6 100644 --- a/azalea-client/tests/simulation/move_despawned_entity.rs +++ b/azalea-client/tests/simulation/move_despawned_entity.rs @@ -1,7 +1,10 @@ use azalea_client::test_utils::prelude::*; use azalea_core::{entity_id::MinecraftEntityId, position::ChunkPos}; use azalea_entity::metadata::Cow; -use azalea_protocol::packets::{ConnectionProtocol, game::ClientboundMoveEntityRot}; +use azalea_protocol::packets::{ + ConnectionProtocol, + game::{ClientboundMoveEntityRot, c_move_entity_pos_rot::CompactLookDirection}, +}; use azalea_registry::builtin::EntityKind; use bevy_ecs::query::With; use tracing::Level; @@ -36,8 +39,7 @@ fn test_move_despawned_entity() { // send a move_entity_rot simulation.receive_packet(ClientboundMoveEntityRot { entity_id: MinecraftEntityId(123), - y_rot: 0, - x_rot: 0, + look_direction: CompactLookDirection::default(), on_ground: false, }); simulation.tick(); -- cgit v1.2.3