diff --git a/1.4/Assemblies/VisualExceptions.dll b/1.4/Assemblies/VisualExceptions.dll index 2f7a941..6465f51 100644 Binary files a/1.4/Assemblies/VisualExceptions.dll and b/1.4/Assemblies/VisualExceptions.dll differ diff --git a/About/Manifest.xml b/About/Manifest.xml index bf8b62f..c90adff 100644 --- a/About/Manifest.xml +++ b/About/Manifest.xml @@ -1,7 +1,7 @@  net.pardeike.rimworld.mod.visualexceptions - 1.2.0.0 + 1.2.1.0
  • 1.2.0
  • 1.3.0
  • diff --git a/Source/Patcher.cs b/Source/Patcher.cs index f9a1c0b..60c4895 100644 --- a/Source/Patcher.cs +++ b/Source/Patcher.cs @@ -15,6 +15,11 @@ static class Patcher internal static bool patchesApplied = false; internal static string harmony_id = "net.pardeike.rimworld.lib.harmony"; + internal static HashSet ignoredMethods = new HashSet() + { + SymbolExtensions.GetMethodInfo(() => ParseHelper.FromString("", typeof(void))) + }; + internal static void Apply() { var harmony = new Harmony(harmony_id); @@ -138,7 +143,7 @@ internal static IEnumerable TargetMethods() var methods = typeof(Pawn).Assembly.GetTypes() .Where(t => t.IsGenericType == false && (t.FullName.StartsWith("Verse.") || t.FullName.StartsWith("RimWorld.") || t.FullName.StartsWith("RuntimeAudioClipLoader."))) .SelectMany(t => AccessTools.GetDeclaredMethods(t)) - .Where(m => m.IsGenericMethod == false && HasCatch(m)); + .Where(m => Patcher.ignoredMethods.Contains(m) == false && m.IsGenericMethod == false && HasCatch(m)); return methods; } diff --git a/Source/VisualExceptions.csproj b/Source/VisualExceptions.csproj index e2dc0a4..9ab7a0e 100644 --- a/Source/VisualExceptions.csproj +++ b/Source/VisualExceptions.csproj @@ -10,7 +10,7 @@ ..\1.4\Assemblies\ true false - 1.2.0.0 + 1.2.1.0 Copyright Andreas Pardeike @@ -31,13 +31,13 @@ - + runtime all compile; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive