summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/Serialisation/SFieldConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Framework/Serialisation/SFieldConverter.cs')
-rw-r--r--src/StardewModdingAPI/Framework/Serialisation/SFieldConverter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Framework/Serialisation/SFieldConverter.cs b/src/StardewModdingAPI/Framework/Serialisation/SFieldConverter.cs
index ffece081..917c950d 100644
--- a/src/StardewModdingAPI/Framework/Serialisation/SFieldConverter.cs
+++ b/src/StardewModdingAPI/Framework/Serialisation/SFieldConverter.cs
@@ -97,7 +97,7 @@ namespace StardewModdingAPI.Framework.Serialisation
foreach (JProperty property in JObject.Load(reader).Properties())
{
string range = property.Name;
- ModStatus status = property.Value.Value<ModStatus>(nameof(ModCompatibility.Status));
+ ModStatus status = (ModStatus)Enum.Parse(typeof(ModStatus), property.Value.Value<string>(nameof(ModCompatibility.Status)));
string reasonPhrase = property.Value.Value<string>(nameof(ModCompatibility.ReasonPhrase));
result.Add(new ModCompatibility(range, status, reasonPhrase));