From 2c8b7c5c2c9297273abfba8f7743f1bc25f166b1 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 28 Sep 2025 13:10:04 -0545 Subject: upgrade bevy to 0.17.0-rc.2 --- azalea-client/src/plugins/respawn.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-client/src/plugins/respawn.rs') diff --git a/azalea-client/src/plugins/respawn.rs b/azalea-client/src/plugins/respawn.rs index f0ddd2b8..ecc773c4 100644 --- a/azalea-client/src/plugins/respawn.rs +++ b/azalea-client/src/plugins/respawn.rs @@ -5,7 +5,7 @@ use bevy_ecs::prelude::*; use crate::packet::game::SendPacketEvent; /// Tell the server that we're respawning. -#[derive(Event, Debug, Clone)] +#[derive(Message, Debug, Clone)] pub struct PerformRespawnEvent { pub entity: Entity, } @@ -14,12 +14,12 @@ pub struct PerformRespawnEvent { pub struct RespawnPlugin; impl Plugin for RespawnPlugin { fn build(&self, app: &mut App) { - app.add_event::() + app.add_message::() .add_systems(Update, perform_respawn); } } -pub fn perform_respawn(mut events: EventReader, mut commands: Commands) { +pub fn perform_respawn(mut events: MessageReader, mut commands: Commands) { for event in events.read() { commands.trigger(SendPacketEvent::new( event.entity, -- cgit v1.2.3