File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
com.unity.netcode.gameobjects/Runtime/Core Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -390,8 +390,8 @@ private void CheckForInScenePlaced()
390390 /// <param name="destroy">Defaults to true, determines whether the <see cref="NetworkObject"/> will be destroyed.</param>
391391 public void DeferDespawn ( int tickOffset , bool destroy = true )
392392 {
393- // Ensure we log the DAMode message first as locking ownership is not allowed if not in DAMode.
394- if ( ! NetworkManagerOwner . DistributedAuthorityMode )
393+ // The DAMode message is logged first, as ownership locking isn’t allowed when not in DAMode, making it the most relevant message .
394+ if ( ! NetworkManager . DistributedAuthorityMode )
395395 {
396396 if ( NetworkManager . LogLevel <= LogLevel . Error )
397397 {
@@ -606,7 +606,7 @@ internal void RemoveOwnershipExtended(OwnershipStatusExtended extended)
606606 /// <returns>true or false depending upon lock operation's success</returns>
607607 public bool SetOwnershipLock ( bool lockOwnership = true )
608608 {
609- // Ensure we log the DAMode message first as locking ownership is not allowed if not in DAMode.
609+ // The DAMode message is logged first, as ownership locking isn’t allowed when not in DAMode, making it the most relevant message .
610610 if ( ! NetworkManager . DistributedAuthorityMode )
611611 {
612612 if ( NetworkManager . LogLevel <= LogLevel . Error )
You can’t perform that action at this time.
0 commit comments