Fix ShockerJsonConverter

This commit is contained in:
glax 2024-02-15 23:11:56 +01:00
parent 60746d66df
commit 746e153cb5
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<Authors>Glax</Authors>
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>2.4.0</Version>
<Version>2.4.1</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -14,7 +14,7 @@ public class ShockerJsonConverter : JsonConverter
public override object ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
{
JObject jo = JObject.Load(reader);
if (jo.ContainsKey("model")) //OpenShockShocker
if (jo.ContainsKey("Model")) //OpenShockShocker
{
return jo.ToObject<OpenShockShocker>(serializer)!;
}