diff --git a/MLEM.Data/Json/JsonConverters.cs b/MLEM.Data/Json/JsonConverters.cs index 5e7cf0b..8553cb5 100644 --- a/MLEM.Data/Json/JsonConverters.cs +++ b/MLEM.Data/Json/JsonConverters.cs @@ -6,8 +6,8 @@ using Newtonsoft.Json; namespace MLEM.Data.Json { public class JsonConverters { - public static readonly JsonConverter[] Converters = Assembly.GetExecutingAssembly().GetExportedTypes() - .Where(t => t.Namespace == typeof(JsonConverters).Namespace && t.IsSubclassOf(typeof(JsonConverter))) + public static readonly JsonConverter[] Converters = typeof(JsonConverters).Assembly.GetExportedTypes() + .Where(t => t.IsSubclassOf(typeof(JsonConverter))) .Select(t => t.GetConstructor(Type.EmptyTypes).Invoke(null)).Cast().ToArray(); public static JsonSerializer AddAll(JsonSerializer serializer) {