From a95408cbcc05b5bd04a084b0a286b571069206f6 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 16 Mar 2025 04:36:42 +0000 Subject: fix broken doc links --- azalea-client/src/plugins/chat/handler.rs | 2 ++ azalea-client/src/plugins/events.rs | 2 ++ 2 files changed, 4 insertions(+) (limited to 'azalea-client/src/plugins') diff --git a/azalea-client/src/plugins/chat/handler.rs b/azalea-client/src/plugins/chat/handler.rs index be99b667..31fbc00e 100644 --- a/azalea-client/src/plugins/chat/handler.rs +++ b/azalea-client/src/plugins/chat/handler.rs @@ -18,6 +18,8 @@ use crate::packet::game::SendPacketEvent; /// /// If you're wondering why this isn't two separate events, it's so ordering is /// preserved if multiple chat messages and commands are sent at the same time. +/// +/// [`SendChatEvent`]: super::SendChatEvent #[derive(Event)] pub struct SendChatKindEvent { pub entity: Entity, diff --git a/azalea-client/src/plugins/events.rs b/azalea-client/src/plugins/events.rs index 3d34d75f..0e30118a 100644 --- a/azalea-client/src/plugins/events.rs +++ b/azalea-client/src/plugins/events.rs @@ -229,6 +229,8 @@ pub fn death_listener(query: Query<&LocalPlayerEvents>, mut events: EventReader< } /// Send the "Death" event for [`LocalEntity`]s that died with no reason. +/// +/// [`LocalEntity`]: azalea_entity::LocalEntity pub fn dead_component_listener(query: Query<&LocalPlayerEvents, Added>) { for local_player_events in &query { local_player_events.send(Event::Death(None)).unwrap(); -- cgit v1.2.3