aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-12-23 01:12:27 +0000
committermat <git@matdoes.dev>2024-12-23 01:12:27 +0000
commit3b1fe490b01258b370d58e70c71945f522010639 (patch)
tree512ae2513109f53efc1ab7c7800bfc7ef3bf4e6e /azalea/src
parent478fe722f58137634525dc4ae1a8a9bdc9cc32fa (diff)
downloadazalea-drasl-3b1fe490b01258b370d58e70c71945f522010639.tar.xz
make testbot take cli args
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/swarm/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs
index 24b336fd..c79e6685 100644
--- a/azalea/src/swarm/mod.rs
+++ b/azalea/src/swarm/mod.rs
@@ -163,6 +163,7 @@ where
handler: Some(Box::new(move |bot, event, state: S| {
Box::pin(handler(bot, event, state))
})),
+ // if we added accounts before the State was set, we've gotta set it to the default now
states: vec![S::default(); self.accounts.len()],
app: self.app,
..self