Skip to content

Commit cf4783c

Browse files
committed
Remove exception
1 parent 8417846 commit cf4783c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Spawning/NetworkSpawnManager.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,11 @@ internal void ChangeOwnership(NetworkObject networkObject, ulong clientId, bool
526526
}
527527
else if (!isAuthorized)
528528
{
529-
throw new NotServerException("Only the server can change ownership");
529+
if (NetworkManager.LogLevel <= LogLevel.Error)
530+
{
531+
NetworkLog.LogError($"Only the server can change ownership! (ignoring)");
532+
return;
533+
}
530534
}
531535

532536
//Should this go at the beginning of the function?

0 commit comments

Comments
 (0)