Changed to LogError

This commit is contained in:
MrGadget1024 2023-01-06 16:47:19 -05:00
parent de1aa3e7e0
commit 86d4f8069c
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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;
}
}