private void setDockingPortTarget(ModuleDockingNode portNode) { var vessel = portNode.GetVessel(); //can't set target if the vessel is not loaded or is the active vessel if (!vessel.loaded || vessel.isActiveVessel) { return; } FlightGlobals.fetch.SetVesselTarget(portNode); }