Skip to content

Commit

Permalink
fix: fixing use of is not in unity 2020
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Jan 31, 2024
1 parent b25f2f9 commit 61b7f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirage/Runtime/ServerObjectManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public void Spawn(NetworkIdentity identity)

internal void SendSpawnMessage(NetworkIdentity identity, INetworkPlayer player)
{
logger.Assert(player.IsAuthenticated || identity.Visibility is not AlwaysVisible,
logger.Assert(player.IsAuthenticated || !(identity.Visibility is AlwaysVisible), // can't use `is not` in unity2020
"SendSpawnMessage should only be called if player is authenticated, or there is custom visibility");
if (logger.LogEnabled()) logger.Log($"Server SendSpawnMessage: name={identity.name} sceneId={identity.SceneId:X} netId={identity.NetId}");

Expand Down

0 comments on commit 61b7f68

Please sign in to comment.