aboutsummaryrefslogtreecommitdiff
path: root/server/bot/src/algos/customer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/bot/src/algos/customer.rs')
-rw-r--r--server/bot/src/algos/customer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bot/src/algos/customer.rs b/server/bot/src/algos/customer.rs
index cb5c5b59..8a53ac20 100644
--- a/server/bot/src/algos/customer.rs
+++ b/server/bot/src/algos/customer.rs
@@ -143,7 +143,7 @@ impl CustomerState {
game.data
.tile_placeable_items
.get(&t.kind)
- .map_or(true, |p| p.contains(&requested_item))
+ .is_none_or(|p| p.contains(&requested_item))
}) {
facing = off.as_vec2();
}