Fixed core saves.
[VOID.git] / VOID_Module.cs
blob:a/VOID_Module.cs -> blob:b/VOID_Module.cs
--- a/VOID_Module.cs
+++ b/VOID_Module.cs
@@ -150,15 +150,15 @@
 		public virtual void _SaveToConfig(KSP.IO.PluginConfiguration config)
 		{
 			foreach (var field in this.GetType().GetFields(
+				BindingFlags.Instance |
 				BindingFlags.NonPublic |
-				BindingFlags.Public |
-				BindingFlags.Instance
+				BindingFlags.Public
 				))
 			{
 				object[] attrs = field.GetCustomAttributes(typeof(AVOID_SaveValue), false);
 
 				if (attrs.Length == 0) {
-					return;
+					continue;
 				}
 
 				AVOID_SaveValue attr = attrs.FirstOrDefault () as AVOID_SaveValue;