Skip to content

Commit

Permalink
changes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ThereDrD0 committed Jan 15, 2025
1 parent f0658e1 commit a832f5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private void OnDamage(Entity<CritHeartbeatComponent> 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());
Expand Down

0 comments on commit a832f5b

Please sign in to comment.