Skip to content

Commit

Permalink
fix: fixing hostmode not sending syncvar to remote owner
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Apr 11, 2023
1 parent 2a2784d commit 925d57d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Assets/Mirage/Runtime/SyncSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ public bool ToObserverWriterOnly(NetworkIdentity identity)
if ((To & (SyncTo.Owner)) == 0)
return true;

// if host, then use ObserverWriter
if (identity.IsClient)
// if hostOwner, then use ObserverWriter
// HasAuthority is only true on server then it most also be host mode
if (identity.HasAuthority)
return true;

return false;
Expand Down

0 comments on commit 925d57d

Please sign in to comment.