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/swarm | |
| 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/swarm')
| -rw-r--r-- | azalea/src/swarm/builder.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/azalea/src/swarm/builder.rs b/azalea/src/swarm/builder.rs index f42b4d4a..0adb4f26 100644 --- a/azalea/src/swarm/builder.rs +++ b/azalea/src/swarm/builder.rs @@ -75,10 +75,11 @@ impl SwarmBuilder<NoState, NoSwarmState, (), ()> { /// Start creating the swarm. #[must_use] pub fn new() -> Self { - Self::new_without_plugins() - .add_plugins(DefaultPlugins) - .add_plugins(DefaultBotPlugins) - .add_plugins(DefaultSwarmPlugins) + Self::new_without_plugins().add_plugins(( + DefaultPlugins, + DefaultBotPlugins, + DefaultSwarmPlugins, + )) } /// [`Self::new`] but without adding the plugins by default. |
