summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/GameVersion.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-04-27 17:08:24 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-04-27 17:08:24 -0400
commitb7edf31c257aad563d12988cf3e99b00a1434ef4 (patch)
treead17aa8eca4a1970a88df669b5b2b313850de8e8 /src/SMAPI/Framework/GameVersion.cs
parent83f89c6ef31b783bd6afa4782df14cbbace0f022 (diff)
downloadSMAPI-b7edf31c257aad563d12988cf3e99b00a1434ef4.tar.gz
SMAPI-b7edf31c257aad563d12988cf3e99b00a1434ef4.tar.bz2
SMAPI-b7edf31c257aad563d12988cf3e99b00a1434ef4.zip
update game version parsing for upcoming SMAPI 2.6 beta (#453)
Diffstat (limited to 'src/SMAPI/Framework/GameVersion.cs')
-rw-r--r--src/SMAPI/Framework/GameVersion.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/SMAPI/Framework/GameVersion.cs b/src/SMAPI/Framework/GameVersion.cs
index 85b2eef6..261de374 100644
--- a/src/SMAPI/Framework/GameVersion.cs
+++ b/src/SMAPI/Framework/GameVersion.cs
@@ -49,9 +49,6 @@ namespace StardewModdingAPI.Framework
/// <param name="gameVersion">The game version string.</param>
private static string GetSemanticVersionString(string gameVersion)
{
- if (gameVersion.StartsWith("1.3.0."))
- return new SemanticVersion(1, 3, 0, "alpha." + gameVersion.Substring("1.3.0.".Length)).ToString();
-
return GameVersion.VersionMap.TryGetValue(gameVersion, out string semanticVersion)
? semanticVersion
: gameVersion;
@@ -61,9 +58,6 @@ namespace StardewModdingAPI.Framework
/// <param name="semanticVersion">The semantic version string.</param>
private static string GetGameVersionString(string semanticVersion)
{
- if (semanticVersion.StartsWith("1.3-alpha."))
- return "1.3.0." + semanticVersion.Substring("1.3-alpha.".Length);
-
foreach (var mapping in GameVersion.VersionMap)
{
if (mapping.Value.Equals(semanticVersion, StringComparison.InvariantCultureIgnoreCase))