Update for collision events by-ref (#10933)

This commit is contained in:
metalgearsloth
2022-09-14 17:26:26 +10:00
committed by GitHub
parent feb50ce7cc
commit 78a4ab6eb2
105 changed files with 204 additions and 62 deletions

View File

@@ -1,7 +1,9 @@
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;
@@ -97,7 +99,7 @@ public sealed class StepTriggerSystem : EntitySystem
return msg.Continue && !msg.Cancelled;
}
private void HandleCollide(EntityUid uid, StepTriggerComponent component, StartCollideEvent args)
private void HandleCollide(EntityUid uid, StepTriggerComponent component, ref StartCollideEvent args)
{
var otherUid = args.OtherFixture.Body.Owner;