diff options
Diffstat (limited to 'server/src/interaction.rs')
| -rw-r--r-- | server/src/interaction.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/src/interaction.rs b/server/src/interaction.rs index 38c1d7fb..7d7376cb 100644 --- a/server/src/interaction.rs +++ b/server/src/interaction.rs @@ -35,7 +35,6 @@ pub fn interact( automated: bool, packet_out: &mut VecDeque<PacketC>, ) { - let _ = automated; //? what was this used for?? if other.is_none() && let Some(item) = this && let Some(active) = &mut item.active @@ -167,13 +166,14 @@ pub fn interact( } } - let can_place = tile.is_none_or(|tile| { - other.as_ref().is_some_and(|other| { - data.tile_placeable_items - .get(&tile) - .is_none_or(|pl| pl.contains(&other.kind)) - }) - }); + let can_place = automated + || tile.is_none_or(|tile| { + other.as_ref().is_some_and(|other| { + data.tile_placeable_items + .get(&tile) + .is_none_or(|pl| pl.contains(&other.kind)) + }) + }); if can_place && this.is_none() |