Skip to content

Commit 67b1015

Browse files
khyperiaNoelStephensUnity
authored andcommitted
Fix NetworkVariables sometimes dropping changes
1 parent 8a72d00 commit 67b1015

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
@@ -1094,8 +1094,8 @@ internal void NetworkVariableUpdate(ulong targetClientId, bool forceSend = false
10941094
if (networkVariable.CanSend())
10951095
{
10961096
shouldSend = true;
1097+
break;
10971098
}
1098-
break;
10991099
}
11001100
}
11011101
// All of this is just to prevent the DA Host from re-sending a NetworkVariable update it received from the client owner

0 commit comments

Comments
 (0)