Remove I18nService, migrate to renamed ServerLocalisationService (#433)
* Remove I18nService, migrate to renamed ServerLocalisationService * Revert VS fuckup * Update using * Remove unused parameter, update comment * Fix develop branch not building
This commit is contained in:
@@ -9,10 +9,10 @@ namespace SPTarkov.Server.Core.Services;
|
||||
[Injectable(InjectionType.Singleton)]
|
||||
public class BotGenerationCacheService(
|
||||
ISptLogger<BotGenerationCacheService> _logger,
|
||||
LocalisationService _localisationService
|
||||
ServerLocalisationService _serverLocalisationService
|
||||
)
|
||||
{
|
||||
protected readonly Queue<BotBase> _activeBotsInRaid = [];
|
||||
protected Queue<BotBase> _activeBotsInRaid = [];
|
||||
protected readonly ConcurrentDictionary<string, List<BotBase>> _storedBots = new();
|
||||
|
||||
/// <summary>
|
||||
@@ -50,7 +50,7 @@ public class BotGenerationCacheService(
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.Error(
|
||||
_localisationService.GetText(
|
||||
_serverLocalisationService.GetText(
|
||||
"bot-cache_has_zero_bots_of_requested_type",
|
||||
key
|
||||
)
|
||||
@@ -60,13 +60,13 @@ public class BotGenerationCacheService(
|
||||
}
|
||||
|
||||
_logger.Error(
|
||||
_localisationService.GetText("bot-cache_has_zero_bots_of_requested_type", key)
|
||||
_serverLocalisationService.GetText("bot-cache_has_zero_bots_of_requested_type", key)
|
||||
);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
_logger.Warning(_localisationService.GetText("bot-no_bot_type_in_cache", key));
|
||||
_logger.Warning(_serverLocalisationService.GetText("bot-no_bot_type_in_cache", key));
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user