From 8e0d1b8682f0898e941fee16c6649f1165fde499 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 24 Sep 2017 02:25:35 -0400 Subject: minor bug fixes (#361) --- src/StardewModdingAPI/Framework/Serialisation/SFieldConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/StardewModdingAPI/Framework') 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(nameof(ModCompatibility.Status)); + ModStatus status = (ModStatus)Enum.Parse(typeof(ModStatus), property.Value.Value(nameof(ModCompatibility.Status))); string reasonPhrase = property.Value.Value(nameof(ModCompatibility.ReasonPhrase)); result.Add(new ModCompatibility(range, status, reasonPhrase)); -- cgit