Skip to content

Commit

Permalink
Add braces (#390) #patch
Browse files Browse the repository at this point in the history
* Update post_on_reddit.yml

* Update post_on_reddit.yml

* Add braces
  • Loading branch information
IhateTrains authored Nov 14, 2021
1 parent d0c3a79 commit 14ed78a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/post_on_reddit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,17 @@ jobs:
title: ${{ github.repository }} ${{ github.event.release.tag_name }} now released
url: https://forum.paradoxplaza.com/forum/threads/imperator-to-ck3-release-thread.1415172/
flair-id: d0f807c-6dbc-11e9-a011-0e85039fdf2a
comment: "Rule 5:\n\nThe converter can be found on the [Paradox Forums](https://forum.paradoxplaza.com/forum/threads/imperator-to-ck3-release-thread.1415172/) and on the [Steam Workshop](https://steamcommunity.com/sharedfiles/filedetails/?id=2255281636).\n\nIf there are any issues with the converters, please let us know on the Paradox Forums and we'd be glad to look into these problems and help you!\n\n\-----------------\n\nSupport the Converters\n\n* [Patreon](https://www.patreon.com/ParadoxGameConverters)\n* [Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=Y7Y3LJLMCWTL4&currency_code=USD&source=url)"
comment: |
Rule 5:
The converter can be found on the [Paradox Forums](https://forum.paradoxplaza.com/forum/threads/imperator-to-ck3-release-thread.1415172/) and on the [Steam Workshop](https://steamcommunity.com/sharedfiles/filedetails/?id=2255281636).
If there are any issues with the converters, please let us know on the Paradox Forums and we'd be glad to look into these problems and help you!
\-----------------
Support the Converters
* [Patreon](https://www.patreon.com/ParadoxGameConverters)
* [Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=Y7Y3LJLMCWTL4&currency_code=USD&source=url)
notification: true
3 changes: 2 additions & 1 deletion ImperatorToCK3/CK3/Provinces/Province.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ private void SetCultureFromImperator(CultureMapper cultureMapper) {
// do we even have a base culture?
if (!string.IsNullOrEmpty(ImperatorProvince.Culture)) {
string ownerTitleName = string.Empty;
if (ownerTitle is not null)
if (ownerTitle is not null) {
ownerTitleName = ownerTitle.Name;
}
var cultureMatch = cultureMapper.Match(ImperatorProvince.Culture, details.Religion, Id, ImperatorProvince.Id, ownerTitleName);
if (cultureMatch is not null) {
details.Culture = cultureMatch;
Expand Down

0 comments on commit 14ed78a

Please sign in to comment.