aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/chat/handler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/plugins/chat/handler.rs')
-rw-r--r--azalea-client/src/plugins/chat/handler.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/plugins/chat/handler.rs b/azalea-client/src/plugins/chat/handler.rs
index a289eb14..d71bcbd1 100644
--- a/azalea-client/src/plugins/chat/handler.rs
+++ b/azalea-client/src/plugins/chat/handler.rs
@@ -21,7 +21,7 @@ use crate::{Account, chat_signing::ChatSigningSession, packet::game::SendPacketE
/// preserved if multiple chat messages and commands are sent at the same time.
///
/// [`SendChatEvent`]: super::SendChatEvent
-#[derive(Event)]
+#[derive(Message)]
pub struct SendChatKindEvent {
pub entity: Entity,
pub content: String,
@@ -29,7 +29,7 @@ pub struct SendChatKindEvent {
}
pub fn handle_send_chat_kind_event(
- mut events: EventReader<SendChatKindEvent>,
+ mut events: MessageReader<SendChatKindEvent>,
mut commands: Commands,
mut query: Query<(&Account, &mut ChatSigningSession)>,
) {