add more intuitive error when using SMAPI 2.6 with SDV 1.2
This commit is contained in:
parent
e71cfc63b5
commit
3633fa4b09
|
@ -156,7 +156,10 @@ namespace StardewModdingAPI
|
||||||
// validate game version
|
// validate game version
|
||||||
if (Constants.GameVersion.IsOlderThan(Constants.MinimumGameVersion))
|
if (Constants.GameVersion.IsOlderThan(Constants.MinimumGameVersion))
|
||||||
{
|
{
|
||||||
this.Monitor.Log($"Oops! You're running Stardew Valley {Constants.GameVersion}, but the oldest supported version is {Constants.MinimumGameVersion}. Please update your game before using SMAPI.", LogLevel.Error);
|
if (Constants.GameVersion.IsBetween("1.2.30", "1.2.33") && Constants.ApiVersion.IsBetween("2.6-beta", "2.6")) // TODO: remove once SMAPI 2.6 is out of beta
|
||||||
|
this.Monitor.Log($"Oops! You're running Stardew Valley {Constants.GameVersion}. Make sure you install SMAPI 2.5.5 instead (SMAPI 2.6 beta is only for Stardew Valley 1.3 beta).", LogLevel.Error);
|
||||||
|
else
|
||||||
|
this.Monitor.Log($"Oops! You're running Stardew Valley {Constants.GameVersion}, but the oldest supported version is {Constants.MinimumGameVersion}. Please update your game before using SMAPI.", LogLevel.Error);
|
||||||
this.PressAnyKeyToExit();
|
this.PressAnyKeyToExit();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue