Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix example send_and_receive_events (bevyengine#11615)
# Objective - Example `send_and_receive_events` added in bevyengine#11574 panics ``` thread 'Compute Task Pool (3)' panicked at bevy/crates/bevy_ecs/src/system/system_param.rs:570:17: Resource requested by send_and_receive_events::read_and_write_different_event_types does not exist: bevy_ecs::event::Events<send_and_receive_events::A> Encountered a panic in system `send_and_receive_events::read_and_write_different_event_types`! Encountered a panic in system `bevy_app::main_schedule::Main::run_main`! ``` ## Solution - Register the events used in the system - Don't use logger as it's not setup with `MinimalPlugins`, just print --------- Co-authored-by: Alice Cecile <[email protected]> Co-authored-by: Kanabenki <[email protected]>
- Loading branch information