This commit is contained in:
D1GQ committed 2026-05-30 14:11:26 -05:00
1 parent fbe5d7cc36
commit c06e2414ac
2 files changed
+6 -1

No files matched your search

+3 -1
View File
@@ -40,7 +40,9 @@ internal static class PlayerControlHelper
var snapshot = AmongUsClient.Instance.allClients.ToArray();
foreach (var client in snapshot)
{
if (client?.Character == null) continue;
if (client == null) continue;
if (client.Character == null) continue;
if (client.Character.PlayerId == player.PlayerId)
return client;
}
@@ -123,6 +123,9 @@ internal static class PlayerJoinAndLeftPatch
internal static void BetterShowNotification(NetworkedPlayerInfo playerData, DisconnectReasons reason = DisconnectReasons.Unknown, string forceReasonText = "")
{
if (playerData == null)
return;
// Prevent showing duplicate notifications
if (playerData.ExtendedData().AntiCheatInfo.BannedByAntiCheat || playerData.ExtendedData().HasShowDcMsg)
return;