summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-24 02:25:35 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-24 02:25:35 -0400
commit8e0d1b8682f0898e941fee16c6649f1165fde499 (patch)
tree1c1af4e5ccd7fab032a2173a11e82a745ea85b34 /src/StardewModdingAPI/Framework
parent5f85d89974c3f1974f8e3d372f12b1cac743cd3a (diff)
downloadSMAPI-8e0d1b8682f0898e941fee16c6649f1165fde499.tar.gz
SMAPI-8e0d1b8682f0898e941fee16c6649f1165fde499.tar.bz2
SMAPI-8e0d1b8682f0898e941fee16c6649f1165fde499.zip
minor bug fixes (#361)
Diffstat (limited to 'src/StardewModdingAPI/Framework')
-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));