Fix ShockerJsonConverter
This commit is contained in:
parent
60746d66df
commit
746e153cb5
@ -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>
|
||||
|
@ -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)!;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user