From 4ecf1b225370ba001419f72dc084c20640e53c3d Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 1 Apr 2025 13:01:52 +0100 Subject: [PATCH] Fixed `AddGifterBotToMaps()` --- Libraries/SPTarkov.Server.Core/Models/Spt/Server/Locations.cs | 2 +- Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Models/Spt/Server/Locations.cs b/Libraries/SPTarkov.Server.Core/Models/Spt/Server/Locations.cs index f2fca3a3..6145faf2 100644 --- a/Libraries/SPTarkov.Server.Core/Models/Spt/Server/Locations.cs +++ b/Libraries/SPTarkov.Server.Core/Models/Spt/Server/Locations.cs @@ -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); } } diff --git a/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs b/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs index 599ed915..a3ba12dd 100644 --- a/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs @@ -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}");