From 9858573dad6b881c7fa890a7818d55280634a6d2 Mon Sep 17 00:00:00 2001 From: CWX Date: Sat, 15 Feb 2025 22:41:08 +0000 Subject: [PATCH] workaround for HideoutItem coming back as _id or id, saves duplicating the type --- .../Core/Models/Eft/Common/Tables/Item.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Libraries/Core/Models/Eft/Common/Tables/Item.cs b/Libraries/Core/Models/Eft/Common/Tables/Item.cs index f0e6bd56..252cedb1 100644 --- a/Libraries/Core/Models/Eft/Common/Tables/Item.cs +++ b/Libraries/Core/Models/Eft/Common/Tables/Item.cs @@ -92,6 +92,25 @@ public record Item public record HideoutItem { [JsonPropertyName("_id")] + + public string? _Id + { + get + { + return Id; + } + set + { + if (value == null) + { + return; + } + + Id = value; + } + } + + [JsonPropertyName("id")] public string? Id { get;