Skip to content

Commit a658931

Browse files
style
Updating comment to better reflect the change.
1 parent 67ca749 commit a658931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ internal bool IsBehaviourEditable()
541541

542542
var networkManager = m_NetworkObject.NetworkManager;
543543

544-
// Only server can MODIFY. So allow modification if network is either not running or we are server
544+
// Only the authority can MODIFY. So allow modification if network is either not running or we are the authority.
545545
return !networkManager.IsListening ||
546546
((networkManager.DistributedAuthorityMode && m_NetworkObject.IsOwner) || (!networkManager.DistributedAuthorityMode && networkManager.IsServer));
547547
}

0 commit comments

Comments
 (0)