skip null orbs when checking ownership

This commit is contained in:
Mister_Nebula 2021-10-25 11:07:09 +01:00
parent 7dd7967834
commit 5ffaccc4dd

View File

@ -234,6 +234,11 @@ namespace QSB
foreach (var item in NomaiOrbTransformSync.OrbTransformSyncs)
{
if (item is null)
{
continue;
}
var identity = item.GetComponent<QNetworkIdentity>();
if (identity.ClientAuthorityOwner == connection)
{