From 228489dded720cea566dd0a4638b39cba2aff5ec Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 16 Feb 2025 17:10:04 +0000 Subject: use MinecraftEntityId type instead of u32 in az-protocol --- azalea-client/tests/simulation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-client/tests') diff --git a/azalea-client/tests/simulation.rs b/azalea-client/tests/simulation.rs index 257e507e..593622aa 100644 --- a/azalea-client/tests/simulation.rs +++ b/azalea-client/tests/simulation.rs @@ -22,7 +22,7 @@ use azalea_protocol::packets::{ ConnectionProtocol, Packet, ProtocolPacket, }; use azalea_registry::DimensionType; -use azalea_world::Instance; +use azalea_world::{Instance, MinecraftEntityId}; use bevy_app::App; use bevy_app::PluginGroup; use bevy_ecs::{prelude::*, schedule::ExecutorKind}; @@ -67,7 +67,7 @@ fn test_set_health_before_login() { assert_eq!(*simulation.component::(), 15.); simulation.receive_packet(ClientboundLogin { - player_id: 0, + player_id: MinecraftEntityId(0), hardcore: false, levels: vec![], max_players: 20, -- cgit v1.2.3