]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix: Don't deploy foldables when clicking on items inside containers (#38709)
authorWinkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com>
Thu, 3 Jul 2025 12:10:20 +0000 (15:10 +0300)
committerGitHub <noreply@github.com>
Thu, 3 Jul 2025 12:10:20 +0000 (14:10 +0200)
* Fix

* Apply suggestions from code review

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Shared/Foldable/DeployFoldableSystem.cs

index cac73f64281e6f7ef60af4e82bbdaa22fe518239..c690f3d51f8d7898094368e4544bb612ac69cefd 100644 (file)
@@ -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<FoldableComponent>(ent, out var foldable))
             return;