aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/lib.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2023-07-09 19:11:29 -0500
committerGitHub <noreply@github.com>2023-07-09 19:11:29 -0500
commitd1afd02aa84e7b4450c1607277f078eb2a0f1bf3 (patch)
treeefea9bb7ef7f2064f7c963fd88f394fecec6231b /azalea/src/lib.rs
parentea8a8fccb6eb39c97f6cb69e11db5f7d0886172e (diff)
downloadazalea-drasl-d1afd02aa84e7b4450c1607277f078eb2a0f1bf3.tar.xz
Update to Bevy 0.11 (#94)
* update to bevy 0.11 * clippy --------- Co-authored-by: mat <git@matdoes.dev>
Diffstat (limited to 'azalea/src/lib.rs')
-rw-r--r--azalea/src/lib.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs
index ec967708..1c6966c5 100644
--- a/azalea/src/lib.rs
+++ b/azalea/src/lib.rs
@@ -10,7 +10,7 @@ pub mod pathfinder;
pub mod prelude;
pub mod swarm;
-use app::{App, Plugin, PluginGroup};
+use app::{App, Plugins};
pub use azalea_auth as auth;
pub use azalea_block as blocks;
pub use azalea_brigadier as brigadier;
@@ -148,16 +148,10 @@ where
self.state = state;
self
}
- /// Add a plugin to the client.
- #[must_use]
- pub fn add_plugin<T: Plugin>(mut self, plugin: T) -> Self {
- self.app.add_plugin(plugin);
- self
- }
/// Add a group of plugins to the client.
#[must_use]
- pub fn add_plugins<T: PluginGroup>(mut self, plugin_group: T) -> Self {
- self.app.add_plugins(plugin_group);
+ pub fn add_plugins<M>(mut self, plugins: impl Plugins<M>) -> Self {
+ self.app.add_plugins(plugins);
self
}