aboutsummaryrefslogtreecommitdiff
path: root/server/src/interaction.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/interaction.rs')
-rw-r--r--server/src/interaction.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/interaction.rs b/server/src/interaction.rs
index 5a8372ee..fef1ca40 100644
--- a/server/src/interaction.rs
+++ b/server/src/interaction.rs
@@ -168,11 +168,11 @@ pub fn interact(
}
}
- let can_place = tile.map_or(true, |tile| {
- other.as_ref().map_or(false, |other| {
+ let can_place = tile.is_none_or(|tile| {
+ other.as_ref().is_some_and(|other| {
data.tile_placeable_items
.get(&tile)
- .map_or(true, |pl| pl.contains(&other.kind))
+ .is_none_or(|pl| pl.contains(&other.kind))
})
});