mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 12:21:25 +00:00
bruh
This commit is contained in:
parent
fef77499c3
commit
d8bfa01868
@ -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) =>
|
||||
|
Loading…
Reference in New Issue
Block a user