From adba9b2889f8774aaebf0b70ecc25e08c32fb739 Mon Sep 17 00:00:00 2001 From: Alex Gilbert Date: Tue, 16 Jan 2024 11:09:04 -0500 Subject: [PATCH] - Made the wrong version error message more user friendly --- StardewArchipelago/Archipelago/ArchipelagoClient.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/StardewArchipelago/Archipelago/ArchipelagoClient.cs b/StardewArchipelago/Archipelago/ArchipelagoClient.cs index 208433a1e..0b1cab105 100644 --- a/StardewArchipelago/Archipelago/ArchipelagoClient.cs +++ b/StardewArchipelago/Archipelago/ArchipelagoClient.cs @@ -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; }