public override void OnUpdate() { if (!JUtil.IsActiveVessel(vessel) || !satFound) { return; } if ((Planetarium.GetUniversalTime() - trailPointEvery) > trailCounter) { trailCounter = Planetarium.GetUniversalTime(); LeaveTrail(); } if (!JUtil.IsInIVA()) { return; } if (pageActiveState && map != null && !map.isMapComplete()) { map.getPartialMap(); } targetVessel = FlightGlobals.fetch.VesselTarget as Vessel; if (UpdateCheck() || orbitingBody != vessel.mainBody) { if (orbitingBody != vessel.mainBody) { trail.Clear(); } RedrawMap(); } }