Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/bevy_app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ bevy_utils = { path = "../bevy_utils", version = "0.4.0" }

# other
serde = { version = "1.0", features = ["derive"] }
parking_lot = "0.11"

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2" }
Expand Down
5 changes: 3 additions & 2 deletions crates/bevy_app/src/app_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{
app::{App, AppExit},
event::Events,
plugin::Plugin,
CoreStage, PluginGroup, PluginGroupBuilder, StartupStage,
CoreStage, EventSubscriptions, PluginGroup, PluginGroupBuilder, StartupStage,
};
use bevy_ecs::{
component::{Component, ComponentDescriptor},
Expand Down Expand Up @@ -228,7 +228,8 @@ impl AppBuilder {
T: Component,
{
self.insert_resource(Events::<T>::default())
.add_system_to_stage(CoreStage::First, Events::<T>::update_system.system())
.insert_resource(EventSubscriptions::<T>::default())
.add_system_to_stage(CoreStage::Last, Events::<T>::update_system.system())
}

/// Inserts a resource to the current [App] and overwrites any resource previously added of the
Expand Down
Loading