diff options
Diffstat (limited to 'src/StardewModdingAPI/Extensions.cs')
-rw-r--r-- | src/StardewModdingAPI/Extensions.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/Extensions.cs b/src/StardewModdingAPI/Extensions.cs index abad6ce2..391e2c8c 100644 --- a/src/StardewModdingAPI/Extensions.cs +++ b/src/StardewModdingAPI/Extensions.cs @@ -83,12 +83,12 @@ namespace StardewModdingAPI public static FieldInfo[] GetPrivateFields(this object o) { - return o.GetType().GetFields(BindingFlags.Instance | BindingFlags.NonPublic); + return o.GetType().GetFields(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static); } public static FieldInfo GetBaseFieldInfo(this Type t, string name) { - return t.GetField(name, BindingFlags.Instance | BindingFlags.NonPublic); + return t.GetField(name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static); } public static T GetBaseFieldValue<T>(this Type t, object o, string name) where T : class |