diff options
Diffstat (limited to 'server/bot')
-rw-r--r-- | server/bot/Cargo.toml | 6 | ||||
-rw-r--r-- | server/bot/src/algos/simple.rs | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/server/bot/Cargo.toml b/server/bot/Cargo.toml index 3143ab55..c8d60270 100644 --- a/server/bot/Cargo.toml +++ b/server/bot/Cargo.toml @@ -7,8 +7,8 @@ edition = "2021" hurrycurry-client-lib = { path = "../client-lib", features = ["tokio-network"] } hurrycurry-protocol = { path = "../protocol" } log = "0.4.22" -anyhow = "1.0.86" +anyhow = "1.0.89" env_logger = "0.11.5" -rustls = { version = "0.23.12", features = ["ring"] } -clap = { version = "4.5.15", features = ["derive"] } +rustls = { version = "0.23.13", features = ["ring"] } +clap = { version = "4.5.18", features = ["derive"] } rand = "0.9.0-alpha.2" diff --git a/server/bot/src/algos/simple.rs b/server/bot/src/algos/simple.rs index dbe8bbfe..b275b522 100644 --- a/server/bot/src/algos/simple.rs +++ b/server/bot/src/algos/simple.rs @@ -145,6 +145,9 @@ impl<S> Context<'_, S> { .iter() .filter_map(|(_, pl)| match &pl.communicate_persist { Some((Message::Item(item), _)) => { + if self.game.data.item_name(*item) == "unknown-order" { + return None; + } let pos = pl.movement.position.as_ivec2(); [IVec2::X, IVec2::Y, -IVec2::X, -IVec2::Y] .into_iter() |