From 03fe7a8df05c36fe55334d3f42df1ae739d4a788 Mon Sep 17 00:00:00 2001 From: kolya5544 <05-kolya@bk.ru> Date: Fri, 18 Jun 2021 15:45:48 +0300 Subject: [PATCH] S1 card flag getter fix (?) --- ClassHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClassHelper.cs b/ClassHelper.cs index 07e95be..dc6cd5b 100644 --- a/ClassHelper.cs +++ b/ClassHelper.cs @@ -240,7 +240,7 @@ public string FlagURL } else { - _FlagURL = $"https://www.nationstates.net/images/cards/s{(int)Season}/{_FlagURL}.jpg"; + _FlagURL = $"https://www.nationstates.net/images/cards/s{(int)Season}/{_FlagURL}{(_FlagURL.EndsWith(".png") ? "" : ".jpg")}"; } } return _FlagURL;