diff options
| author | mat <git@matdoes.dev> | 2026-01-23 18:09:59 -0930 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-01-23 18:09:59 -0930 |
| commit | 53e630f73f5fcc82a6818448cdb105abb75dfcc7 (patch) | |
| tree | ad5f58874ab147483a42638aa04ef8936b983694 /azalea/src/client_impl/mod.rs | |
| parent | b7ad0e60f7b0a5f5a1f6a2c80abc865fdb250ee5 (diff) | |
| download | azalea-drasl-53e630f73f5fcc82a6818448cdb105abb75dfcc7.tar.xz | |
add Event::ConnectionFailed and add more plugins by default when using Client::join
Diffstat (limited to 'azalea/src/client_impl/mod.rs')
| -rw-r--r-- | azalea/src/client_impl/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/azalea/src/client_impl/mod.rs b/azalea/src/client_impl/mod.rs index d55e5a38..343b8aef 100644 --- a/azalea/src/client_impl/mod.rs +++ b/azalea/src/client_impl/mod.rs @@ -33,8 +33,10 @@ use tokio::sync::mpsc; use uuid::Uuid; use crate::{ + bot::DefaultBotPlugins, entity_ref::EntityRef, events::{Event, LocalPlayerEvents}, + swarm::DefaultSwarmPlugins, }; pub mod attack; @@ -86,7 +88,7 @@ impl StartClientOpts { event_sender: Option<mpsc::UnboundedSender<Event>>, ) -> StartClientOpts { let mut app = App::new(); - app.add_plugins(DefaultPlugins); + app.add_plugins((DefaultPlugins, DefaultBotPlugins, DefaultSwarmPlugins)); // appexit_rx is unused here since the user should be able to handle it // themselves if they're using StartClientOpts::new |
