From 7fd34c1093e0cea3823c216946d5bb650a08189a Mon Sep 17 00:00:00 2001 From: Alex Klos Date: Sun, 30 Oct 2022 20:55:07 +0100 Subject: [PATCH] Disable collide against non-Hard fixtures (#12277) Co-authored-by: Alex Klos --- Content.Shared/StepTrigger/Systems/StepTriggerSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Shared/StepTrigger/Systems/StepTriggerSystem.cs b/Content.Shared/StepTrigger/Systems/StepTriggerSystem.cs index 89ec548fd5..bf08b7c915 100644 --- a/Content.Shared/StepTrigger/Systems/StepTriggerSystem.cs +++ b/Content.Shared/StepTrigger/Systems/StepTriggerSystem.cs @@ -2,7 +2,6 @@ using Content.Shared.StepTrigger.Components; using Robust.Shared.Collections; using Robust.Shared.GameStates; using Robust.Shared.Physics.Components; -using Robust.Shared.Physics.Dynamics; using Robust.Shared.Physics.Events; namespace Content.Shared.StepTrigger.Systems; @@ -103,6 +102,9 @@ public sealed class StepTriggerSystem : EntitySystem { var otherUid = args.OtherFixture.Body.Owner; + if (!args.OtherFixture.Hard) + return; + if (!CanTrigger(uid, otherUid, component)) return;