diff --git a/PoE-MxFilterGen/compiler/section.cs b/PoE-MxFilterGen/compiler/section.cs index 0eda67e..1401f9f 100644 --- a/PoE-MxFilterGen/compiler/section.cs +++ b/PoE-MxFilterGen/compiler/section.cs @@ -84,16 +84,22 @@ namespace PoE_MxFilterGen.compiler if (bltype == "Normal" && type == "Strict") { bshow = "Hide"; } File.AppendAllText(outpath, bshow + Environment.NewLine); ////////// Class ////////// - if (bl.Class[0] != null) + if (bl.Class != null) { foreach (var c in bl.Class) { iC += string.Format(@" ""{0}""", c); } - File.AppendAllText(outpath, $" Class {iC} {Environment.NewLine}"); + if (iC != "") + { + File.AppendAllText(outpath, $" Class {iC} {Environment.NewLine}"); + } } ////////// Base ////////// - if (bl.BaseType[0] != null) + if (bl.BaseType != null) { foreach (var b in bl.BaseType) { iB += string.Format(@" ""{0}""", b); } - File.AppendAllText(outpath, $" BaseType {iB} {Environment.NewLine}"); + if (iB != "") + { + File.AppendAllText(outpath, $" BaseType {iB} {Environment.NewLine}"); + } } ////////// SetTextColor ////////// if (bl.SetTextColor[0] != null) diff --git a/PoE-MxFilterGen/main.cs b/PoE-MxFilterGen/main.cs index 26f54c8..aafa6df 100644 --- a/PoE-MxFilterGen/main.cs +++ b/PoE-MxFilterGen/main.cs @@ -12,7 +12,7 @@ namespace PoE_MxFilterGen internal class main { private static DateTime dt = DateTime.Now; - public static string version = "11.0.0"; + public static string version = "11.0.1"; public static string fDate = string.Format("{0}-{1}-{2}", (object)main.dt.Day, (object)main.dt.Month, (object)main.dt.Year); public static string api = ""; public static string giturl = "https://mxgit.ovh/mikx"; diff --git a/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe b/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe index 8393e9d..9a2fcd0 100644 Binary files a/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe and b/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe differ diff --git a/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb b/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb index 78be3de..613f070 100644 Binary files a/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb and b/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb differ