bevy/crates/bevy_app/src
Mathis cd694c0d08 Prevent event from getting registered twice (#4258)
# Objective

As described in  #4257, registering an Event twice would cause some systems to miss events on some starts, since the event buffer is cleared + swapped multiple times.

Fixes #4257

## Solution

A simple check whether the event is already registered is added, making adding an Event a second time a no-op.
2022-03-20 21:54:10 +00:00
..
app.rs Prevent event from getting registered twice (#4258) 2022-03-20 21:54:10 +00:00
ci_testing.rs remove Events from bevy_app, they now live in bevy_ecs (#4066) 2022-03-01 19:33:56 +00:00
lib.rs remove Events from bevy_app, they now live in bevy_ecs (#4066) 2022-03-01 19:33:56 +00:00
plugin_group.rs Bevy app docs (#3539) 2022-01-06 23:16:47 +00:00
plugin.rs Enable the doc_markdown clippy lint (#3457) 2022-01-09 23:20:13 +00:00
schedule_runner.rs remove Events from bevy_app, they now live in bevy_ecs (#4066) 2022-03-01 19:33:56 +00:00