We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b23ed2f commit 6a642c3Copy full SHA for 6a642c3
ImperatorToCK3/CK3/Titles/Title.cs
@@ -220,7 +220,7 @@ Mappers.Region.ImperatorRegionMapper imperatorRegionMapper
220
// ------------------ Country Name Locs
221
var nameSet = false;
222
LocBlock? regionLocBlock = localizationMapper.GetLocBlockForKey(governorship.RegionName);
223
- var countryAdjectiveLocBlock = country.CK3Title.Localizations[country.CK3Title.Name + "_adj"];
+ country.CK3Title.Localizations.TryGetValue(country.CK3Title.Name + "_adj", out var countryAdjectiveLocBlock);
224
if (regionLocBlock is not null && countryAdjectiveLocBlock is not null) {
225
var nameLocBlock = new LocBlock(regionLocBlock);
226
nameLocBlock.ModifyForEveryLanguage(countryAdjectiveLocBlock,
0 commit comments