From 74a38d80e31343d8cbea566c2cad89d587ee04fb Mon Sep 17 00:00:00 2001 From: CWX Date: Mon, 13 Jan 2025 21:57:18 +0000 Subject: [PATCH] fix locations toDict --- Core/Models/Spt/Server/Locations.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/Models/Spt/Server/Locations.cs b/Core/Models/Spt/Server/Locations.cs index 1e67a739..36a516f8 100644 --- a/Core/Models/Spt/Server/Locations.cs +++ b/Core/Models/Spt/Server/Locations.cs @@ -93,8 +93,7 @@ public class Locations { if (_locationDictionaryCache is null) { - var classProps = GetType() - .GetProperties(); + var classProps = typeof(Locations).GetProperties().Where(p => p.PropertyType == typeof(Eft.Common.Location) && p.Name != "Item"); _locationDictionaryCache = classProps .ToDictionary(propertyInfo => propertyInfo.Name, propertyInfo => propertyInfo.GetValue(this, null) as Eft.Common.Location); }