Terraria.ModLoader.ModNet.OnModsDownloaded C# (CSharp) Method

OnModsDownloaded() private static method

private static OnModsDownloaded ( bool needsReload ) : void
needsReload bool
return void
		private static void OnModsDownloaded(bool needsReload) {
			if (needsReload)
			{
				ModLoader.PostLoad = NetReload;
				ModLoader.Reload();
				return;
			}

			downloadingMod = null;
			netMods = null;
			foreach (var mod in ModLoader.LoadedMods)
				mod.netID = -1;

			new ModPacket(MessageID.SyncMods).Send();
		}