Skip to content

Commit f4a167b

Browse files
committed
Removed warnings when sending message server to host
1 parent 4419a14 commit f4a167b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

MLAPI/NetworkingManagerComponents/Core/InternalMessageHandler.Send.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ internal static void PassthroughSend(uint targetId, uint sourceId, ushort messag
1313
if (netManager.isHost && targetId == netManager.NetworkConfig.NetworkTransport.HostDummyId)
1414
{
1515
//Host trying to send data to it's own client
16-
if (LogHelper.CurrentLogLevel <= LogLevel.Normal) LogHelper.LogWarning("Send method got message aimed at server from the server?");
1716
return;
1817
}
1918

@@ -52,7 +51,6 @@ internal static bool Send(uint clientId, string messageType, string channelName,
5251
if (netManager.isHost && targetClientId == netManager.NetworkConfig.NetworkTransport.HostDummyId)
5352
{
5453
//Don't invoke the message on our own machine. Instant stack overflow.
55-
if (LogHelper.CurrentLogLevel <= LogLevel.Normal) LogHelper.LogWarning("Cannot send message to own client");
5654
return true;
5755
}
5856
else if (targetClientId == netManager.NetworkConfig.NetworkTransport.HostDummyId)

0 commit comments

Comments
 (0)