fix locations toDict

This commit is contained in:
CWX
2025-01-13 21:57:18 +00:00
parent 345097c8a2
commit 74a38d80e3
+1 -2
View File
@@ -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);
}