Skip to content

Commit

Permalink
correct event name
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryImMouse committed Jan 24, 2025
1 parent 891255c commit 91ece04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Robust.Server/Audio/AudioSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public override (EntityUid Entity, AudioComponent Component)? PlayEntity(string?
if (TerminatingOrDeleted(uid))
return null;

var ev = new AudioPlayAttempt();
var ev = new PlayAudioAttempt();
RaiseLocalEvent(uid, ev, false);
if (ev.Cancelled)
return null;
Expand All @@ -123,7 +123,7 @@ public override (EntityUid Entity, AudioComponent Component)? PlayPvs(string? fi
if (TerminatingOrDeleted(uid))
return null;

var ev = new AudioPlayAttempt();
var ev = new PlayAudioAttempt();
RaiseLocalEvent(uid, ev, false);
if (ev.Cancelled)
return null;
Expand Down
2 changes: 1 addition & 1 deletion Robust.Shared/Audio/Components/AudioComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,4 @@ public enum AudioFlags : byte
/// <summary>
/// Raised directed at an entity, which is emitting the audio. Raised only when audio played at the entity itself, not the coordinates.
/// </summary>
public sealed class AudioPlayAttempt : CancellableEntityEventArgs;
public sealed class PlayAudioAttempt : CancellableEntityEventArgs;

0 comments on commit 91ece04

Please sign in to comment.