From a68a25190101c0658385d4346c84f848288ce0ff Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 11 Jun 2024 15:12:50 +0100 Subject: [PATCH] Altered Upd.StackObjectsCount type to object as BSGs data returns an int 99% of the time and string 1% of the time --- Model/Upd.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Model/Upd.cs b/Model/Upd.cs index 9c02828..367e364 100644 --- a/Model/Upd.cs +++ b/Model/Upd.cs @@ -1,5 +1,4 @@ using System.Text.Json.Serialization; -using LootDumpProcessor.Process.Processor; using LootDumpProcessor.Utils; using Newtonsoft.Json; @@ -9,7 +8,7 @@ namespace LootDumpProcessor.Model { [JsonProperty("StackObjectsCount", NullValueHandling = NullValueHandling.Ignore)] [JsonPropertyName("StackObjectsCount")] - public int? StackObjectsCount { get; set; } + public object? StackObjectsCount { get; set; } [JsonProperty("FireMode", NullValueHandling = NullValueHandling.Ignore)] [JsonPropertyName("FireMode")]