OnSave now only saves in editor or flight.

OnSave probably gets called at funny times and if MJ's internal state isn't set up properly, this could let to settings being overwritten with defaults or junk. So this may help settings be more stable.