Disable collide against non-Hard fixtures (#12277)
Co-authored-by: Alex Klos <alexklos@prohobo.dev>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user