Skip to content

Commit ce3d053

Browse files
fix
Fixing issue discovered by Noellie in the HasAuthority check.
1 parent 861f507 commit ce3d053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private void FlushMessages()
7878
private bool HasAuthority()
7979
{
8080
var isServerAuthority = m_NetworkAnimator.IsServerAuthoritative();
81-
return (!isServerAuthority && m_NetworkAnimator.IsOwner) || (isServerAuthority && m_NetworkAnimator.IsServer);
81+
return (!isServerAuthority && m_NetworkAnimator.IsOwner) || (isServerAuthority && (m_NetworkAnimator.IsServer || m_NetworkAnimator.IsOwner));
8282
}
8383

8484
/// <inheritdoc />

0 commit comments

Comments
 (0)