Skip to content

Commit

Permalink
- Made the wrong version error message more user friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
agilbert1412 committed Jan 16, 2024
1 parent 3f43f9b commit adba9b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion StardewArchipelago/Archipelago/ArchipelagoClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public void Connect(ArchipelagoConnectionInfo connectionInfo, out string errorMe

if (!IsMultiworldVersionSupported())
{
errorMessage = $"This Multiworld has been created for StardewArchipelago version {SlotData.MultiworldVersion},\nbut this is StardewArchipelago version {_modManifest.Version}.\nPlease update to a compatible mod version.";
var genericVersion = SlotData.MultiworldVersion.Replace("0", "x");
errorMessage = $"This Multiworld has been created for StardewArchipelago version {genericVersion},\nbut this is StardewArchipelago version {_modManifest.Version}.\nPlease update to a compatible mod version.";
DisconnectPermanently();
return;
}
Expand Down

0 comments on commit adba9b2

Please sign in to comment.