diff --git a/crates/bevy_app/src/event/event.rs b/crates/bevy_app/src/event/event.rs index 83a8999baf..b07486d2a9 100644 --- a/crates/bevy_app/src/event/event.rs +++ b/crates/bevy_app/src/event/event.rs @@ -1,4 +1,4 @@ -use legion::prelude::{ResourceMut, Resources}; +use legion::prelude::{ResMut, Resources}; use std::marker::PhantomData; struct EventInstance { @@ -205,7 +205,7 @@ impl Events { } /// A system that calls [Events::update] once per frame. - pub fn update_system(mut events: ResourceMut) { + pub fn update_system(mut events: ResMut) { events.update(); } diff --git a/crates/bevy_asset/src/lib.rs b/crates/bevy_asset/src/lib.rs index c1db51b0df..37fb383a27 100644 --- a/crates/bevy_asset/src/lib.rs +++ b/crates/bevy_asset/src/lib.rs @@ -76,8 +76,8 @@ impl Assets { } pub fn asset_event_system( - mut events: ResourceMut>>, - mut assets: ResourceMut>, + mut events: ResMut>>, + mut assets: ResMut>, ) { events.extend(assets.events.drain()) } diff --git a/crates/bevy_core/src/time.rs b/crates/bevy_core/src/time.rs index 0d29d6a093..e14cb03d73 100644 --- a/crates/bevy_core/src/time.rs +++ b/crates/bevy_core/src/time.rs @@ -32,10 +32,10 @@ impl Time { } } -pub fn start_timer_system(mut time: ResourceMut