From 4571af1e6eaa76b8d0c4f6e91321aa28fbd6a056 Mon Sep 17 00:00:00 2001 From: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com> Date: Tue, 19 Apr 2022 06:45:36 -0700 Subject: [PATCH] Change doors to ignore static entities when closing (#7646) --- Content.Shared/Doors/Systems/SharedDoorSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Doors/Systems/SharedDoorSystem.cs b/Content.Shared/Doors/Systems/SharedDoorSystem.cs index b9fbca2919..103327b0e9 100644 --- a/Content.Shared/Doors/Systems/SharedDoorSystem.cs +++ b/Content.Shared/Doors/Systems/SharedDoorSystem.cs @@ -170,7 +170,7 @@ public abstract class SharedDoorSystem : EntitySystem protected virtual void OnActivate(EntityUid uid, DoorComponent door, ActivateInWorldEvent args) { // avoid client-mispredicts, as the server will definitely handle this event - args.Handled = true; + args.Handled = true; } private void OnExamine(EntityUid uid, DoorComponent door, ExaminedEvent args) @@ -433,7 +433,7 @@ public abstract class SharedDoorSystem : EntitySystem if (!otherPhysics.CanCollide) continue; - if ((physics.CollisionMask & otherPhysics.CollisionLayer) == 0 + if (otherPhysics.BodyType == BodyType.Static || (physics.CollisionMask & otherPhysics.CollisionLayer) == 0 && (otherPhysics.CollisionMask & physics.CollisionLayer) == 0) continue;