diff options
| author | Ubuntu <github@matdoes.dev> | 2023-02-06 19:15:41 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2023-02-06 19:15:41 +0000 |
| commit | d51b2a29b2911e4be480727e56553fa27cfbfce0 (patch) | |
| tree | 880eb62b3e90337cb29d51a30852bce07416bfd8 /azalea/examples/matbot.rs | |
| parent | cbcf1d5e54caefb50ec6340aaf1e8a94312a38c8 (diff) | |
| download | azalea-drasl-d51b2a29b2911e4be480727e56553fa27cfbfce0.tar.xz | |
fix some swarm examples/docs
Diffstat (limited to 'azalea/examples/matbot.rs')
| -rw-r--r-- | azalea/examples/matbot.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/examples/matbot.rs b/azalea/examples/matbot.rs index 17736eab..1ddd9197 100644 --- a/azalea/examples/matbot.rs +++ b/azalea/examples/matbot.rs @@ -14,7 +14,7 @@ use std::time::Duration; #[derive(Default, Clone, Component)] struct State {} -#[derive(Default, Clone, Component)] +#[derive(Default, Clone, Resource)] struct SwarmState {} #[tokio::main] @@ -54,7 +54,7 @@ async fn main() -> anyhow::Result<()> { } loop { - let e = azalea::SwarmBuilder::new() + let e = SwarmBuilder::new() .add_accounts(accounts.clone()) .set_handler(handle) .set_swarm_handler(swarm_handle) |
