From a832f5bba1dff01550fd80669996d75c56c4b6b0 Mon Sep 17 00:00:00 2001 From: drdth Date: Wed, 15 Jan 2025 07:42:11 +0300 Subject: [PATCH] changes 2 --- Content.Server/_Sunrise/CritHeartbeat/CritHeartbeatSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/_Sunrise/CritHeartbeat/CritHeartbeatSystem.cs b/Content.Server/_Sunrise/CritHeartbeat/CritHeartbeatSystem.cs index c51dda5eebe..dfa89d66846 100644 --- a/Content.Server/_Sunrise/CritHeartbeat/CritHeartbeatSystem.cs +++ b/Content.Server/_Sunrise/CritHeartbeat/CritHeartbeatSystem.cs @@ -32,7 +32,7 @@ private void OnDamage(Entity ent, ref DamageChangedEvent if (!ent.Comp.Enabled) return; - if (ent.Comp.AudioStream == null || !Exists(ent.Comp.AudioStream)) + if (!Exists(ent.Comp.AudioStream)) return; var pitch = Math.Min(1, 100 / args.Damageable.TotalDamage.Float());