Skip to content

Commit

Permalink
More logging in CoopHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 6, 2024
1 parent 5421dea commit ace8093
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Fika.Core/Coop/Components/CoopHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,10 @@ private LocalPlayer SpawnObservedPlayer(Profile profile, Vector3 position, int p
{
Players.Add(netId, (CoopPlayer)otherPlayer);
}
else
{
Logger.LogError($"Trying to add {otherPlayer.Profile.Nickname} to list of players but it was already there!");
}

if (!Singleton<GameWorld>.Instance.RegisteredPlayers.Any(x => x.Profile.ProfileId == profile.ProfileId))
Singleton<GameWorld>.Instance.RegisteredPlayers.Add(otherPlayer);
Expand Down

0 comments on commit ace8093

Please sign in to comment.