aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/tests
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2025-09-30 10:56:34 -0500
committerGitHub <noreply@github.com>2025-09-30 10:56:34 -0500
commit643fcb98c0e6cdc63218dd39960d9053b209d9a6 (patch)
tree6bddb7fe39b8fcc3ab3fb2665574533bb227898a /azalea-client/tests
parenta80d8d1b242430c4a251876fa67bfd26af7a0de9 (diff)
downloadazalea-drasl-643fcb98c0e6cdc63218dd39960d9053b209d9a6.tar.xz
1.21.9 (#235)
* start updating to 25w33a * 1.21.9-pre2 * clippy * cleanup, and fix c_explode and c_player_rotation * mc update should be in Changed section in the changelog * 1.21.9
Diffstat (limited to 'azalea-client/tests')
-rw-r--r--azalea-client/tests/receive_spawn_entity_and_start_config_packet.rs2
-rw-r--r--azalea-client/tests/teleport_movement.rs8
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()
}
)