aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-12-02 16:06:42 -0600
committermat <git@matdoes.dev>2023-12-02 16:06:42 -0600
commitf052882123220bdfaeb827199394f920ea1cd43d (patch)
tree734e243d10ac477c2b036247aeddd9478e3477e3 /azalea-client/src
parent34a40270108e51014e0884c3b6b6619ba42c17dc (diff)
downloadazalea-drasl-f052882123220bdfaeb827199394f920ea1cd43d.tar.xz
make sure Startup system runs before any bots join
Diffstat (limited to 'azalea-client/src')
-rw-r--r--azalea-client/src/client.rs6
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>> {