diff options
| author | mat <git@matdoes.dev> | 2023-12-02 16:06:42 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-12-02 16:06:42 -0600 |
| commit | f052882123220bdfaeb827199394f920ea1cd43d (patch) | |
| tree | 734e243d10ac477c2b036247aeddd9478e3477e3 /azalea-client | |
| parent | 34a40270108e51014e0884c3b6b6619ba42c17dc (diff) | |
| download | azalea-drasl-f052882123220bdfaeb827199394f920ea1cd43d.tar.xz | |
make sure Startup system runs before any bots join
Diffstat (limited to 'azalea-client')
| -rw-r--r-- | azalea-client/src/client.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 95b7b747..21d3a80a 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -54,7 +54,9 @@ use azalea_protocol::{ resolver, ServerAddress, }; use azalea_world::{Instance, InstanceContainer, InstanceName, PartialInstance}; -use bevy_app::{App, FixedUpdate, Plugin, PluginGroup, PluginGroupBuilder, Update}; +use bevy_app::{ + App, FixedUpdate, Plugin, PluginGroup, PluginGroupBuilder, PreStartup, Startup, Update, +}; use bevy_ecs::{ bundle::Bundle, component::Component, @@ -653,7 +655,7 @@ impl Plugin for AzaleaPlugin { /// [`DefaultPlugins`]. #[doc(hidden)] pub fn start_ecs_runner( - app: App, + mut app: App, run_schedule_receiver: mpsc::UnboundedReceiver<()>, run_schedule_sender: mpsc::UnboundedSender<()>, ) -> Arc<Mutex<World>> { |
