Skip to content

Commit

Permalink
Build Error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
NotZer0Two committed Dec 10, 2024
1 parent 1a0f639 commit 6fc52e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXILED/Exiled.API/Features/Toys/Speaker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ public static Speaker Create(Vector3? position, Vector3? rotation, Vector3? scal
/// <returns>The corresponding Speaker instance.</returns>
public static Speaker Get(SpeakerToy speakerToy)
{
AdminToy adminToy = Map.Toys.FirstOrDefault(x => x.AdminToyBase == speakerToy);
return adminToy is not null ? adminToy as Speaker : new Speaker(speakerToy);
AdminToy adminToy = List.FirstOrDefault(x => x.AdminToyBase == speakerToy);
return adminToy is not null ? adminToy as Speaker : new(speakerToy);
}

/// <summary>
Expand Down

0 comments on commit 6fc52e8

Please sign in to comment.