public static void DisableMod(IMod mod) { prefs.Disabled.Add(mod); mod.OnDisable(); prefs.Save(ModConstants.MODLOADER_PREFS_PATH); }