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>
This commit is contained in:
parent
fe7b96147c
commit
433ef5dd27
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue