diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-03-14 14:15:50 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-03-14 14:15:50 -0400 |
commit | da630efc1d5c95816493c2969736ae883e723757 (patch) | |
tree | b460810bc2702facf16bca9a263d53a2380a2c6c /src/StardewModdingAPI/Framework/Reflection | |
parent | 02a4c40814caf26f21fc9afd9c64afd639da462f (diff) | |
download | SMAPI-da630efc1d5c95816493c2969736ae883e723757.tar.gz SMAPI-da630efc1d5c95816493c2969736ae883e723757.tar.bz2 SMAPI-da630efc1d5c95816493c2969736ae883e723757.zip |
downgrade to .NET Framework 4.0 for better compatibility on Windows 7–8.1
Diffstat (limited to 'src/StardewModdingAPI/Framework/Reflection')
-rw-r--r-- | src/StardewModdingAPI/Framework/Reflection/PrivateProperty.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/Framework/Reflection/PrivateProperty.cs b/src/StardewModdingAPI/Framework/Reflection/PrivateProperty.cs index 08204b7e..d89e8e44 100644 --- a/src/StardewModdingAPI/Framework/Reflection/PrivateProperty.cs +++ b/src/StardewModdingAPI/Framework/Reflection/PrivateProperty.cs @@ -60,7 +60,7 @@ namespace StardewModdingAPI.Framework.Reflection { try { - return (TValue)this.PropertyInfo.GetValue(this.Parent); + return (TValue)this.PropertyInfo.GetValue(this.Parent, null); } catch (InvalidCastException) { @@ -78,7 +78,7 @@ namespace StardewModdingAPI.Framework.Reflection { try { - this.PropertyInfo.SetValue(this.Parent, value); + this.PropertyInfo.SetValue(this.Parent, value, null); } catch (InvalidCastException) { |