From 433ef5dd27181e4093ea9316145f9eff4251a403 Mon Sep 17 00:00:00 2001 From: Winkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com> Date: Thu, 3 Jul 2025 15:10:20 +0300 Subject: [PATCH] Fix: Don't deploy foldables when clicking on items inside containers (#38709) * Fix * Apply suggestions from code review --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- Content.Shared/Foldable/DeployFoldableSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Shared/Foldable/DeployFoldableSystem.cs b/Content.Shared/Foldable/DeployFoldableSystem.cs index cac73f6428..c690f3d51f 100644 --- a/Content.Shared/Foldable/DeployFoldableSystem.cs +++ b/Content.Shared/Foldable/DeployFoldableSystem.cs @@ -59,6 +59,10 @@ public sealed class DeployFoldableSystem : EntitySystem if (args.Handled || !args.CanReach) return; + // Don't do anything unless you clicked on the floor. + if (args.Target.HasValue) + return; + if (!TryComp(ent, out var foldable)) return;