From d8bfa01868582d973ac7ea1b5d3b68ff5d8d80eb Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sun, 7 May 2023 18:26:38 -0700 Subject: [PATCH] bruh --- QSB/QSBNetworkManager.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/QSB/QSBNetworkManager.cs b/QSB/QSBNetworkManager.cs index 0bd74639..fd0bd32a 100644 --- a/QSB/QSBNetworkManager.cs +++ b/QSB/QSBNetworkManager.cs @@ -235,14 +235,17 @@ public class QSBNetworkManager : NetworkManager, IAddComponentOnStart networkAddress = QSBCore.DefaultServerIP; { - // hack - kcp2k.Log.Info += s => + kcp2k.Log.Info = s => { + DebugLog.DebugWrite("[KCP] " + s); + // hack if (s == "KcpPeer: received disconnect message") { OnClientError(TransportError.ConnectionClosed, "host disconnected"); } }; + kcp2k.Log.Warning = s => DebugLog.DebugWrite("[KCP] " + s, MessageType.Warning); + kcp2k.Log.Error = s => DebugLog.DebugWrite("[KCP] " + s, MessageType.Error); } QSBSceneManager.OnPostSceneLoad += (_, loadScene) =>