Skip to content

Commit

Permalink
Fix for Announcements Send to Chat
Browse files Browse the repository at this point in the history
- Swaps OBE FindBroadcastPlayer for newer SendChatMessageToAll method
  • Loading branch information
data-bomb committed Sep 6, 2024
1 parent ea4a0c9 commit 96dbf7c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Si_Announcements/Si_Announcements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ You should have received a copy of the GNU General Public License
using System.Linq;
using UnityEngine;

[assembly: MelonInfo(typeof(Announcements), "Server Announcements", "1.1.9", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonInfo(typeof(Announcements), "Server Announcements", "1.1.10", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonGame("Bohemia Interactive", "Silica")]
[assembly: MelonOptionalDependencies("Admin Mod")]

Expand Down Expand Up @@ -155,9 +155,7 @@ private static void Postfix(MusicJukeboxHandler __instance)
}

string nextAnnouncement = GetNextAnnouncement();

Player broadcastPlayer = HelperMethods.FindBroadcastPlayer();
broadcastPlayer.SendChatMessage(nextAnnouncement);
HelperMethods.SendChatMessageToAll(nextAnnouncement);
}
}
catch (Exception exception)
Expand Down

0 comments on commit 96dbf7c

Please sign in to comment.