From b9c571dc1096cf9a6e2074ec30b73305ff354c85 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 11 Sep 2022 19:19:27 +1000 Subject: [PATCH] Ignore non-hard bodies for anchoring (#11098) --- Content.Server/Construction/AnchorableSystem.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Content.Server/Construction/AnchorableSystem.cs b/Content.Server/Construction/AnchorableSystem.cs index c25fd46208..65a6803919 100644 --- a/Content.Server/Construction/AnchorableSystem.cs +++ b/Content.Server/Construction/AnchorableSystem.cs @@ -120,8 +120,11 @@ namespace Content.Server.Construction while (enumerator.MoveNext(out var ent)) { if (!bodyQuery.TryGetComponent(ent, out var body) || - !body.CanCollide) + !body.CanCollide || + !body.Hard) + { continue; + } if ((body.CollisionMask & anchorBody.CollisionLayer) != 0x0 || (body.CollisionLayer & anchorBody.CollisionMask) != 0x0)