Ignore non-hard bodies for anchoring (#11098)

This commit is contained in:
metalgearsloth
2022-09-11 19:19:27 +10:00
committed by GitHub
parent f492442337
commit b9c571dc10

View File

@@ -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)