diff --git a/Assets/Mirror/Runtime/Transport/KCP/MirrorTransport/KcpTransport.cs b/Assets/Mirror/Runtime/Transport/KCP/MirrorTransport/KcpTransport.cs index 1a54c32d8..1b423f6c7 100644 --- a/Assets/Mirror/Runtime/Transport/KCP/MirrorTransport/KcpTransport.cs +++ b/Assets/Mirror/Runtime/Transport/KCP/MirrorTransport/KcpTransport.cs @@ -208,11 +208,6 @@ public override int GetMaxPacketSize(int channelId = Channels.DefaultReliable) public override int GetMaxBatchSize(int channelId) => KcpConnection.UnreliableMaxMessageSize; - public override string ToString() - { - return "KCP"; - } - // server statistics public int GetAverageMaxSendRate() => server.connections.Count > 0 @@ -313,6 +308,8 @@ void OnLogStatistics() Debug.Log(log); } } + + public override string ToString() => "KCP"; } } //#endif MIRROR <- commented out because MIRROR isn't defined on first import yet