Skip to content

Commit

Permalink
Quick save fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Apr 19, 2020
1 parent bf9b4b4 commit 1ac95b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MBOptionScreen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageId>Bannerlord.MBOptionScreen</PackageId>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>1.1.9</Version>
<Version>1.1.10</Version>
<PackageProjectUrl>https://github.com/Aragas/Bannerlord.MBOptionScreen</PackageProjectUrl>
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
<RepositoryUrl>https://github.com/Aragas/Bannerlord.MBOptionScreen</RepositoryUrl>
Expand Down
4 changes: 3 additions & 1 deletion Settings/SimpleJsonSettingsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ public class IgnorePropertiesResolver : DefaultContractResolver
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
{
var property = base.CreateProperty(member, memberSerialization);
property.ShouldSerialize = x => property.AttributeProvider.GetAttributes(true).Any(a => a.GetType() == typeof(SettingPropertyAttribute));
property.ShouldSerialize = x => property.AttributeProvider.GetAttributes(true).Any(a =>
Utils.AnyBaseTypeIs(a.GetType(), "MBOptionScreen.Attributes.BaseSettingPropertyAttribute")
);
return property;
}
}
Expand Down

0 comments on commit 1ac95b9

Please sign in to comment.