Skip to content

Commit

Permalink
Quick fix for disconnecting players breaking mod
Browse files Browse the repository at this point in the history
  • Loading branch information
DaXcess committed Mar 6, 2024
1 parent a88da05 commit b636780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Networking/DNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private static void OnPlayerLeftSession(VoicePlayerState player)
return;

// TODO: Remove, optionally also remove `clientByName`
logger.LogDebug($"{player.Tracker?.PlayerId}, {id}, {((NfgoPlayer)player.Tracker!).gameObject.GetComponent<PlayerControllerB>().playerClientId}");
logger.LogDebug($"{player.Tracker?.PlayerId}, {id}");

if (players.TryGetValue(id, out var networkPlayer))
Object.Destroy(networkPlayer);
Expand Down

0 comments on commit b636780

Please sign in to comment.