mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkClient: improve 'found null entry' message to not sound the same as on the server
This commit is contained in:
parent
fe66afd27a
commit
69ac95e55e
@ -1485,9 +1485,8 @@ static void Broadcast()
|
|||||||
}
|
}
|
||||||
// spawned list should have no null entries because we
|
// spawned list should have no null entries because we
|
||||||
// always call Remove in OnObjectDestroy everywhere.
|
// always call Remove in OnObjectDestroy everywhere.
|
||||||
// if it does have null then someone used
|
// if it does have null then we missed something.
|
||||||
// GameObject.Destroy instead of NetworkServer.Destroy.
|
else Debug.LogWarning($"Found 'null' entry in owned list for client. This is unexpected behaviour.");
|
||||||
else Debug.LogWarning($"Found 'null' entry in observing list for connectionId={connection.connectionId}. Please call NetworkServer.Destroy to destroy networked objects. Don't use GameObject.Destroy.");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user