aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/tests/simulation
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-03-18 11:07:31 +0330
committermat <git@matdoes.dev>2026-03-18 11:07:31 +0330
commit9fa09259aa9daa9119d95f4b5634d017c0262596 (patch)
tree4443e0454aedd41ce2f8fb3a941ad3730626e1a4 /azalea-client/tests/simulation
parent8b2a9d512bad11be2ea40899e2d834f643fdc2e8 (diff)
downloadazalea-drasl-9fa09259aa9daa9119d95f4b5634d017c0262596.tar.xz
merge logic for the three move_entity packets
Diffstat (limited to 'azalea-client/tests/simulation')
-rw-r--r--azalea-client/tests/simulation/move_despawned_entity.rs8
1 files changed, 5 insertions, 3 deletions
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();