Skip to content

Commit 2510c99

Browse files
update
Always assure owner authoritative mode when in distributed authority mode.
1 parent 555770d commit 2510c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.netcode.gameobjects/Runtime/Components/NetworkAnimator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,9 @@ public bool IsServerAuthoritative()
669669
/// </remarks>
670670
protected virtual bool OnIsServerAuthoritative()
671671
{
672-
if (m_LocalNetworkManager && m_LocalNetworkManager.DistributedAuthorityMode)
672+
if (DistributedAuthorityMode)
673673
{
674-
return true;
674+
return false;
675675
}
676676
return AuthorityMode == AuthorityModes.Server;
677677
}

0 commit comments

Comments
 (0)