From 746e153cb544a2e07689df694de078590cd4143d Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 15 Feb 2024 23:11:56 +0100 Subject: [PATCH] Fix ShockerJsonConverter --- CShocker/CShocker.csproj | 2 +- CShocker/Shockers/Additional/ShockerJsonConverter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CShocker/CShocker.csproj b/CShocker/CShocker.csproj index a02a50d..7bcb487 100644 --- a/CShocker/CShocker.csproj +++ b/CShocker/CShocker.csproj @@ -7,7 +7,7 @@ Glax https://github.com/C9Glax/CShocker git - 2.4.0 + 2.4.1 diff --git a/CShocker/Shockers/Additional/ShockerJsonConverter.cs b/CShocker/Shockers/Additional/ShockerJsonConverter.cs index ef03d15..93e64fe 100644 --- a/CShocker/Shockers/Additional/ShockerJsonConverter.cs +++ b/CShocker/Shockers/Additional/ShockerJsonConverter.cs @@ -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(serializer)!; }