Update for collision events by-ref (#10933)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Content.Server.Shuttles.Components;
|
||||
using Robust.Shared.Physics;
|
||||
using Robust.Shared.Physics.Dynamics;
|
||||
using Robust.Shared.Physics.Events;
|
||||
|
||||
namespace Content.Server.Shuttles.Systems;
|
||||
|
||||
@@ -15,7 +16,7 @@ public sealed class SpaceGarbageSystem : EntitySystem
|
||||
SubscribeLocalEvent<SpaceGarbageComponent, StartCollideEvent>(OnCollide);
|
||||
}
|
||||
|
||||
private void OnCollide(EntityUid uid, SpaceGarbageComponent component, StartCollideEvent args)
|
||||
private void OnCollide(EntityUid uid, SpaceGarbageComponent component, ref StartCollideEvent args)
|
||||
{
|
||||
if (args.OtherFixture.Body.BodyType != BodyType.Static) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user