From 82d6d7589345ad3ac0885b4a428f63d372d8946e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 14 Oct 2025 14:49:22 +0200 Subject: Fix conveyor put items on non-interactable tiles --- server/src/interaction.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'server/src') 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, ) { - 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() -- cgit v1.3