mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Changed to LogError
This commit is contained in:
parent
de1aa3e7e0
commit
86d4f8069c
@ -1202,7 +1202,7 @@ internal static void OnObjectSpawnFinished(ObjectSpawnFinishedMessage _)
|
||||
{
|
||||
// One warning is sufficient.
|
||||
if (nulls.Count == 0)
|
||||
Debug.LogWarning("Null entry found in NetworkClient.spawned will be removed.\nThis is unexpected...was the NetworkIdentity not destroyed properly?");
|
||||
Debug.LogError("Null entry found in NetworkClient.spawned will be removed.\nThis is unexpected...was the NetworkIdentity not destroyed properly?");
|
||||
nulls.Add(kvp.Key);
|
||||
}
|
||||
}
|
||||
|
@ -1061,7 +1061,7 @@ static void SpawnObserversForConnection(NetworkConnectionToClient conn)
|
||||
{
|
||||
// One warning is sufficient.
|
||||
if (nulls.Count == 0)
|
||||
Debug.LogWarning("SpawnObserversForConnection: Null entries found in spawned will be removed. This should not happen.");
|
||||
Debug.LogError("SpawnObserversForConnection: Null entries found in spawned will be removed. This should not happen.");
|
||||
nulls.Add(kvp.Key);
|
||||
continue;
|
||||
}
|
||||
@ -1775,7 +1775,7 @@ static void BroadcastToConnection(NetworkConnectionToClient connection)
|
||||
{
|
||||
// One warning is sufficient.
|
||||
if (!hasNulls)
|
||||
Debug.LogWarning($"Null entries found in observing list for connectionId={connection.connectionId} will be removed.\nPlease call NetworkServer.Destroy to destroy networked objects. Don't use GameObject.Destroy.");
|
||||
Debug.LogError($"Null entries found in observing list for connectionId={connection.connectionId} will be removed.\nPlease call NetworkServer.Destroy to destroy networked objects. Don't use GameObject.Destroy.");
|
||||
hasNulls = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user