From b63678046e4b546a0957843f9b7d85ae2dc844f1 Mon Sep 17 00:00:00 2001 From: DaXcess Date: Wed, 6 Mar 2024 20:12:14 +0100 Subject: [PATCH] Quick fix for disconnecting players breaking mod --- Source/Networking/DNet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Networking/DNet.cs b/Source/Networking/DNet.cs index 17031d10..2231546b 100644 --- a/Source/Networking/DNet.cs +++ b/Source/Networking/DNet.cs @@ -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().playerClientId}"); + logger.LogDebug($"{player.Tracker?.PlayerId}, {id}"); if (players.TryGetValue(id, out var networkPlayer)) Object.Destroy(networkPlayer);