internal static void Postfix() { foreach (var mod in MelonHandler.Mods.OfType <BloonsMod>().OrderByDescending(mod => mod.Priority)) { try { ResourceHandler.LoadEmbeddedTextures(mod); ResourceHandler.LoadEmbeddedBundles(mod); ModContent.LoadModContent(mod); } catch (Exception e) { MelonLogger.Error("Critical failure when loading resources for mod " + mod.Info.Name); MelonLogger.Error(e); } } MelonMain.PerformHook(mod => mod.OnTitleScreen()); foreach (var modParagonTower in ModContent.GetContent <ModVanillaParagon>()) { modParagonTower.AddUpgradesToRealTowers(); } foreach (var modelMod in Game.instance.model.mods) { if (modelMod.name.EndsWith("Only")) { var mutatorModModels = modelMod.mutatorMods.ToList(); mutatorModModels.AddRange(ModContent.GetContent <ModTowerSet>() .Where(set => !set.AllowInRestrictedModes) .Select(set => new LockTowerSetModModel(modelMod.name, set.Id))); modelMod.mutatorMods = mutatorModModels.ToIl2CppReferenceArray(); } } }