Fixed AddGifterBotToMaps()
This commit is contained in:
@@ -226,6 +226,6 @@ public record Locations
|
||||
{
|
||||
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);
|
||||
.ToDictionary(propertyInfo => propertyInfo.Name, propertyInfo => propertyInfo.GetValue(this, null) as Eft.Common.Location, StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1091,7 +1091,7 @@ public class SeasonalEventService(
|
||||
var maps = _databaseService.GetLocations().GetDictionary();
|
||||
foreach (var gifterMapSettings in gifterSettings)
|
||||
{
|
||||
if (!maps.TryGetValue(gifterMapSettings.Map, out var mapData))
|
||||
if (!maps.TryGetValue(_databaseService.GetLocations().GetMappedKey(gifterMapSettings.Map), out var mapData))
|
||||
{
|
||||
_logger.Warning($"AddGifterBotToMaps() Map not found {gifterMapSettings.Map}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user