From 87c34e1c3355e2b950f3c6f4ae44dcdfb775bbca Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 1 Feb 2025 20:35:57 +0000 Subject: add failing test_set_health_before_login test --- azalea-protocol/src/packets/game/c_add_player.rs | 27 ------------------------ 1 file changed, 27 deletions(-) delete mode 100755 azalea-protocol/src/packets/game/c_add_player.rs (limited to 'azalea-protocol') diff --git a/azalea-protocol/src/packets/game/c_add_player.rs b/azalea-protocol/src/packets/game/c_add_player.rs deleted file mode 100755 index 7b36567d..00000000 --- a/azalea-protocol/src/packets/game/c_add_player.rs +++ /dev/null @@ -1,27 +0,0 @@ -use azalea_buf::AzBuf; -use azalea_core::{ResourceLocation, Vec3}; -use azalea_entity::{metadata::PlayerMetadataBundle, EntityBundle, PlayerBundle}; -use azalea_protocol_macros::ClientboundGamePacket; -use azalea_registry::EntityKind; -use uuid::Uuid; - -/// This packet is sent by the server when a player comes into visible range, -/// not when a player joins. -#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] -pub struct ClientboundAddPlayer { - #[var] - pub id: u32, - pub uuid: Uuid, - pub position: Vec3, - pub x_rot: i8, - pub y_rot: i8, -} - -impl ClientboundAddPlayer { - pub fn as_player_bundle(&self, world_name: ResourceLocation) -> PlayerBundle { - PlayerBundle { - entity: EntityBundle::new(self.uuid, self.position, EntityKind::Player, world_name), - metadata: PlayerMetadataBundle::default(), - } - } -} -- cgit v1.2.3