Don't allow non-hard anchor overlap (#12890)

This commit is contained in:
metalgearsloth
2022-12-17 14:51:30 +11:00
committed by GitHub
parent 56fa19045d
commit b3e55c5e22

View File

@@ -11,6 +11,7 @@ using Content.Shared.Examine;
using Content.Shared.Pulling.Components;
using Content.Shared.Tools.Components;
using Robust.Shared.Map;
using Robust.Shared.Physics;
using Robust.Shared.Physics.Components;
using Robust.Shared.Player;
@@ -122,7 +123,7 @@ namespace Content.Server.Construction
{
if (!bodyQuery.TryGetComponent(ent, out var body) ||
!body.CanCollide ||
!body.Hard)
(!body.Hard && body.BodyType != BodyType.Static))
{
continue;
}