diff --git a/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs b/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs index 170272f7294e04..39e2c50c7cc0a4 100644 --- a/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs +++ b/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs @@ -80,10 +80,9 @@ private bool ShouldCollideThroughWall(EntityUid uid, TriggerOnProximityComponent if (component.TriggerBehindWall) return true; - TryComp(uid, out var entTransform); - TryComp(args.OtherBody.Owner, out var otherTranform); - if (entTransform != null && otherTranform != null) + if (TryComp(uid, out var entTransform) && + TryComp(args.OtherBody.Owner, out var otherTranform)) { SharedPhysicsSystem physSystem = EntityManager.System();