Ignore non-hard bodies for anchoring (#11098)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user