Skip to content

Commit 49292f3

Browse files
committed
fix: NetworkId recycle settings not being included in base64 export
1 parent c867868 commit 49292f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MLAPI/Configuration/NetworkConfig.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ public string ToBase64()
225225
writer.WriteBits((byte)config.RpcHashSize, 3);
226226
writer.WriteBool(ForceSamePrefabs);
227227
writer.WriteBool(UsePrefabSync);
228+
writer.WriteBool(RecycleNetworkIds);
229+
writer.WriteSinglePacked(NetworkIdRecycleDelay);
228230
writer.WriteBool(EnableNetworkedVar);
229231
stream.PadStream();
230232

@@ -270,6 +272,8 @@ public void FromBase64(string base64)
270272
config.RpcHashSize = (HashSize)reader.ReadBits(3);
271273
config.ForceSamePrefabs = reader.ReadBool();
272274
config.UsePrefabSync = reader.ReadBool();
275+
config.RecycleNetworkIds = reader.ReadBool();
276+
config.NetworkIdRecycleDelay = reader.ReadSinglePacked();
273277
config.EnableNetworkedVar = reader.ReadBool();
274278
}
275279
}

0 commit comments

Comments
 (0)