Remove obsolete Fixture.Body references (#16259)
This commit is contained in:
@@ -26,8 +26,8 @@ public sealed class FlyBySoundSystem : SharedFlyBySoundSystem
|
||||
|
||||
// If it's not our ent or we shot it.
|
||||
if (attachedEnt == null ||
|
||||
args.OtherFixture.Body.Owner != attachedEnt ||
|
||||
TryComp<ProjectileComponent>(args.OurFixture.Body.Owner, out var projectile) &&
|
||||
args.OtherEntity != attachedEnt ||
|
||||
TryComp<ProjectileComponent>(uid, out var projectile) &&
|
||||
projectile.Shooter == attachedEnt)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user