Skip to content

Commit 6b3ca04

Browse files
fix
Needed to check the inverse of whether either are true to determine if we should exit early in the NetworkBehaviourUpdater.
1 parent fdfa924 commit 6b3ca04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ internal void ForceSendIfDirtyOnNetworkShow(NetworkObject networkObject)
107107
internal void ProcessDirtyObject(NetworkObject networkObject, bool forceSend)
108108
{
109109
// Only the server or the owner of the NetworkObject will send
110-
// delta state updates. Otherwise, exit early.
111-
if (!m_NetworkManager.IsServer || !networkObject.IsOwner)
110+
// delta state updates. Otherwise, if neither are true we exit early.
111+
if (!(m_NetworkManager.IsServer || networkObject.IsOwner))
112112
{
113113
return;
114114
}

0 commit comments

Comments
 (0)