Don't allow non-hard anchor overlap (#12890)
This commit is contained in:
@@ -11,6 +11,7 @@ using Content.Shared.Examine;
|
|||||||
using Content.Shared.Pulling.Components;
|
using Content.Shared.Pulling.Components;
|
||||||
using Content.Shared.Tools.Components;
|
using Content.Shared.Tools.Components;
|
||||||
using Robust.Shared.Map;
|
using Robust.Shared.Map;
|
||||||
|
using Robust.Shared.Physics;
|
||||||
using Robust.Shared.Physics.Components;
|
using Robust.Shared.Physics.Components;
|
||||||
using Robust.Shared.Player;
|
using Robust.Shared.Player;
|
||||||
|
|
||||||
@@ -122,7 +123,7 @@ namespace Content.Server.Construction
|
|||||||
{
|
{
|
||||||
if (!bodyQuery.TryGetComponent(ent, out var body) ||
|
if (!bodyQuery.TryGetComponent(ent, out var body) ||
|
||||||
!body.CanCollide ||
|
!body.CanCollide ||
|
||||||
!body.Hard)
|
(!body.Hard && body.BodyType != BodyType.Static))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user