We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_syncEnabled
OnNetworkSpawn
1 parent 2f923d4 commit 64286b2Copy full SHA for 64286b2
CSync/Lib/ConfigSyncBehaviour.cs
@@ -28,7 +28,7 @@ public bool SyncEnabled
28
set => _syncEnabled.Value = value;
29
}
30
31
- private readonly NetworkVariable<bool> _syncEnabled = new() { Value = true };
+ private readonly NetworkVariable<bool> _syncEnabled = new();
32
private NetworkList<SyncedEntryDelta> _deltas = null!;
33
34
[MemberNotNull(nameof(EntryContainer))]
@@ -50,6 +50,8 @@ public override void OnNetworkSpawn()
50
51
if (IsServer)
52
{
53
+ _syncEnabled.Value = true;
54
+
55
foreach (var syncedEntryBase in EntryContainer.Values)
56
57
var currentIndex = _deltas.Count;
0 commit comments