Skip to content

Commit

Permalink
More logging in Fika Client
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 6, 2024
1 parent ace8093 commit 81361c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Fika.Core/Networking/FikaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ private void OnSyncNetIdPacketReceived(SyncNetIdPacket packet, NetPeer peer)
else
{
FikaPlugin.Instance.FikaLogger.LogError($"OnSyncNetIdPacketReceived: Could not find NetId {packet.NetId} in player list!");
string allPlayers = "";
foreach (KeyValuePair<int, CoopPlayer> kvp in CoopHandler.Players)
{
string toAdd = $"Key: {kvp.Key}, Nickname: {kvp.Value.Profile.Nickname}, NetId: {kvp.Value.NetId}";
allPlayers = string.Join(", ", allPlayers + toAdd);
}
FikaPlugin.Instance.FikaLogger.LogError(allPlayers);
}
}

Expand Down

0 comments on commit 81361c0

Please sign in to comment.