aboutsummaryrefslogtreecommitdiff
path: root/server/bot/src/algos/simple.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/bot/src/algos/simple.rs')
-rw-r--r--server/bot/src/algos/simple.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bot/src/algos/simple.rs b/server/bot/src/algos/simple.rs
index 42cc4223..914e8809 100644
--- a/server/bot/src/algos/simple.rs
+++ b/server/bot/src/algos/simple.rs
@@ -134,7 +134,7 @@ impl<S> Context<'_, S> {
.data
.tile_placeable_items
.get(&t.kind)
- .map_or(true, |placable| placable.contains(item))
+ .is_none_or(|placable| placable.contains(item))
})
})
.map(|off| pos + off)