aboutsummaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-14 14:49:22 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-14 14:49:25 +0200
commit82d6d7589345ad3ac0885b4a428f63d372d8946e (patch)
tree9a56704d9004cf0943e04eb74ef85e99bf61a186 /server/src
parentd057e0a8566e16a0b1f49ae517bcfbd3dc446a04 (diff)
downloadhurrycurry-82d6d7589345ad3ac0885b4a428f63d372d8946e.tar
hurrycurry-82d6d7589345ad3ac0885b4a428f63d372d8946e.tar.bz2
hurrycurry-82d6d7589345ad3ac0885b4a428f63d372d8946e.tar.zst
Fix conveyor put items on non-interactable tiles
Diffstat (limited to 'server/src')
-rw-r--r--server/src/interaction.rs16
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()