From d1afd02aa84e7b4450c1607277f078eb2a0f1bf3 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 9 Jul 2023 19:11:29 -0500 Subject: Update to Bevy 0.11 (#94) * update to bevy 0.11 * clippy --------- Co-authored-by: mat --- azalea-client/src/mining.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'azalea-client/src/mining.rs') diff --git a/azalea-client/src/mining.rs b/azalea-client/src/mining.rs index ab141661..241c4fde 100644 --- a/azalea-client/src/mining.rs +++ b/azalea-client/src/mining.rs @@ -1,5 +1,5 @@ use azalea_core::BlockPos; -use bevy_app::{App, Plugin}; +use bevy_app::{App, Plugin, Update}; use bevy_ecs::prelude::*; use crate::Client; @@ -9,7 +9,7 @@ pub struct MinePlugin; impl Plugin for MinePlugin { fn build(&self, app: &mut App) { app.add_event::() - .add_system(handle_start_mining_block_event); + .add_systems(Update, handle_start_mining_block_event); } } @@ -23,6 +23,7 @@ impl Client { } } +#[derive(Event)] pub struct StartMiningBlockEvent { pub entity: Entity, pub position: BlockPos, -- cgit v1.2.3