From d1afd02aa84e7b4450c1607277f078eb2a0f1bf3 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 9 Jul 2023 19:11:29 -0500 Subject: Update to Bevy 0.11 (#94) * update to bevy 0.11 * clippy --------- Co-authored-by: mat --- azalea/src/lib.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'azalea/src/lib.rs') 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(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(mut self, plugin_group: T) -> Self { - self.app.add_plugins(plugin_group); + pub fn add_plugins(mut self, plugins: impl Plugins) -> Self { + self.app.add_plugins(plugins); self } -- cgit v1.2.3