internal static void SyncMods(int clientIndex) {
var p = new ModPacket(MessageID.SyncMods);
p.Write(AllowVanillaClients);
var syncMods = ModLoader.LoadedMods.Where(mod => mod.Side == ModSide.Both).ToArray();
p.Write(syncMods.Length);
foreach (var mod in syncMods)
{
p.Write(mod.Name);
p.Write(mod.Version.ToString());
p.Write(mod.File.hash);
p.Write(mod.File.ValidModBrowserSignature);
}
p.Send(clientIndex);
}