Only add chat messages to private logs

This commit is contained in:
D1GQ committed 2026-08-29 12:17:51 -05:00
1 parent 06ab2542c0
commit c8410a811a
1 file changed
+1 -8
+1 -8
View File
@@ -217,14 +217,7 @@ internal static class ChatPatch
private static void ChatController_AddChat_Postfix(ChatController __instance, PlayerControl sourcePlayer, string chatText)
{
// Log chat publicly if player is alive, privately if dead
if (sourcePlayer.IsAlive() || !PlayerControl.LocalPlayer.IsAlive())
{
Logger_.Log($"{sourcePlayer.Data.PlayerName} -> {chatText}", "ChatLog");
}
else
{
Logger_.LogPrivate($"{sourcePlayer.Data.PlayerName} -> {chatText}", "ChatLog");
}
Logger_.LogPrivate($"{sourcePlayer.Data.PlayerName} -> {chatText}", "ChatLog");
}
[HarmonyPatch(typeof(ChatController), nameof(ChatController.SetChatBubbleName))]