diff options
Diffstat (limited to 'azalea-client/tests')
| -rw-r--r-- | azalea-client/tests/receive_spawn_entity_and_start_config_packet.rs | 2 | ||||
| -rw-r--r-- | azalea-client/tests/teleport_movement.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/azalea-client/tests/receive_spawn_entity_and_start_config_packet.rs b/azalea-client/tests/receive_spawn_entity_and_start_config_packet.rs index 5acb5f0b..8fa3d925 100644 --- a/azalea-client/tests/receive_spawn_entity_and_start_config_packet.rs +++ b/azalea-client/tests/receive_spawn_entity_and_start_config_packet.rs @@ -27,7 +27,7 @@ fn test_receive_spawn_entity_and_start_config_packet() { y_rot: 0, y_head_rot: 0, data: 0, - velocity: Default::default(), + movement: Default::default(), }); simulation.receive_packet(ClientboundStartConfiguration); diff --git a/azalea-client/tests/teleport_movement.rs b/azalea-client/tests/teleport_movement.rs index f8f747b0..48fc11d5 100644 --- a/azalea-client/tests/teleport_movement.rs +++ b/azalea-client/tests/teleport_movement.rs @@ -1,6 +1,6 @@ use azalea_client::test_utils::prelude::*; use azalea_core::{ - delta::PositionDelta8, + delta::{LpVec3, PositionDelta8}, position::{BlockPos, ChunkPos, Vec3}, }; use azalea_entity::LookDirection; @@ -117,11 +117,11 @@ fn test_teleport_movement() { simulation.receive_packet(ClientboundPing { id: 4 }); simulation.receive_packet(ClientboundSetEntityMotion { id: MinecraftEntityId(0), - delta: PositionDelta8 { + delta: LpVec3::from(Vec3::from(PositionDelta8 { xa: 0, ya: -627, za: 0, - }, + })), }); simulation.receive_packet(ClientboundPing { id: 5 }); simulation.tick(); @@ -147,7 +147,7 @@ fn test_teleport_movement() { p, ServerboundGamePacket::MovePlayerPos(p) if p == &ServerboundMovePlayerPos { - pos: Vec3::new(10000.5, 69.9216251, 0.5), + pos: Vec3::new(10000.5, 69.84691458452664, 0.5), flags: MoveFlags::default() } ) |
