summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Reflection/ReflectedField.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/Reflection/ReflectedField.cs')
-rw-r--r--src/SMAPI/Framework/Reflection/ReflectedField.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI/Framework/Reflection/ReflectedField.cs b/src/SMAPI/Framework/Reflection/ReflectedField.cs
index 197a246e..a97ca3f0 100644
--- a/src/SMAPI/Framework/Reflection/ReflectedField.cs
+++ b/src/SMAPI/Framework/Reflection/ReflectedField.cs
@@ -56,11 +56,11 @@ namespace StardewModdingAPI.Framework.Reflection
}
/// <inheritdoc />
- public TValue? GetValue()
+ public TValue GetValue()
{
try
{
- return (TValue?)this.FieldInfo.GetValue(this.Parent);
+ return (TValue)this.FieldInfo.GetValue(this.Parent)!;
}
catch (InvalidCastException)
{
@@ -73,7 +73,7 @@ namespace StardewModdingAPI.Framework.Reflection
}
/// <inheritdoc />
- public void SetValue(TValue? value)
+ public void SetValue(TValue value)
{
try
{