VOID_Core: Skip Editor modules if we're not in the editor. There's probably a more modular way to do this.
VOID_Core: Skip Editor modules if we're not in the editor. There's probably a more modular way to do this.

--- a/VOIDFlightMaster.cs
+++ b/VOIDFlightMaster.cs
@@ -55,8 +55,9 @@
 
 		public void Update()
 		{
-			if (!HighLogic.LoadedSceneIsFlight)
+			if (!HighLogic.LoadedSceneIsFlight && this.Core != null)
 			{
+				this.Core.SaveConfig ();
 				this.Core = null;
 				VOID_Core.Reset();
 				return;
@@ -120,8 +121,9 @@
 
 		public void Update()
 		{
-			if (!HighLogic.LoadedSceneIsEditor)
+			if (!HighLogic.LoadedSceneIsEditor && this.Core != null)
 			{
+				this.Core.SaveConfig ();
 				this.Core = null;
 				VOID_EditorCore.Reset();
 				return;

--- a/VOID_Core.cs
+++ b/VOID_Core.cs
@@ -246,6 +246,13 @@
 				));
 			foreach (var voidType in types)
 			{
+				if (!HighLogic.LoadedSceneIsEditor &&
+				    typeof(IVOID_EditorModule).IsAssignableFrom(voidType)
+				    )
+				{
+					continue;
+				}
+
 				Tools.PostDebugMessage (string.Format (
 					"{0}: found Type {1}",
 					this.GetType ().Name,