summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Toolkit/Framework/Clients
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-11-19 19:22:55 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-11-19 19:22:55 -0500
commitaeca48c4190afaf64191253446a869019f4557f5 (patch)
treeb8f360c0fbffa420d7ac5ef6c017386a11359548 /src/StardewModdingAPI.Toolkit/Framework/Clients
parent4cd9eda1591c3908bf80b60c2902491a7595ee27 (diff)
downloadSMAPI-aeca48c4190afaf64191253446a869019f4557f5.tar.gz
SMAPI-aeca48c4190afaf64191253446a869019f4557f5.tar.bz2
SMAPI-aeca48c4190afaf64191253446a869019f4557f5.zip
fix beta header shown on compat list when there's no current beta
Diffstat (limited to 'src/StardewModdingAPI.Toolkit/Framework/Clients')
-rw-r--r--src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs
index 7197bf2c..a881e8b7 100644
--- a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs
+++ b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs
@@ -52,6 +52,8 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
// fetch game versions
string stableVersion = doc.DocumentNode.SelectSingleNode("div[@class='game-stable-version']")?.InnerText;
string betaVersion = doc.DocumentNode.SelectSingleNode("div[@class='game-beta-version']")?.InnerText;
+ if (betaVersion == stableVersion)
+ betaVersion = null;
// find mod entries
HtmlNodeCollection modNodes = doc.DocumentNode.SelectNodes("table[@id='mod-list']//tr[@class='mod']");