num fix
This commit is contained in:
parent
130c63d33f
commit
6acbbf1413
@ -13,4 +13,5 @@ rand = "0.8.4"
|
||||
regex = "1.7.1"
|
||||
toml = "0.7.2"
|
||||
serde = "1.0.152"
|
||||
scoped_threadpool = "0.1.9"
|
||||
tokio-openssl = "0.6.3"
|
||||
webpki = "0.22.0"
|
@ -34,7 +34,7 @@ impl Command for InvadeCommand {
|
||||
let config_value = config_str.parse::<Value>().unwrap();
|
||||
let config: Config = config_value.try_into().unwrap();
|
||||
|
||||
for invader in &config.invaders {
|
||||
for invader in &config.invaders[0..num_bots] {
|
||||
let thread_channel = invadechannel.to_string();
|
||||
let thread_invader = invader.to_string();
|
||||
let config_clone = config.clone();
|
||||
|
Loading…
Reference in New Issue
Block a user