From 16ea1c7e00939a6a707d89c462aa2daf4cdefcb7 Mon Sep 17 00:00:00 2001 From: Robin B Date: Mon, 15 Jul 2019 21:32:37 +0200 Subject: [PATCH] Fix PluginManager version check by discarding patch rel from version string Versions like 1.1.0p1 break `SemVer.Version`. This commit fixes that by discarding the patch version, leaving e.g. 1.1.0. --- IPA.Loader/Loader/PluginManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPA.Loader/Loader/PluginManager.cs b/IPA.Loader/Loader/PluginManager.cs index 56752e65..14ada8d7 100644 --- a/IPA.Loader/Loader/PluginManager.cs +++ b/IPA.Loader/Loader/PluginManager.cs @@ -294,7 +294,7 @@ namespace IPA.Loader string pluginDir = BeatSaber.PluginsPath; var gameVer = BeatSaber.GameVersion; var lastVerS = SelfConfig.SelfConfigRef.Value.LastGameVersion; - var lastVer = lastVerS != null ? new SemVer.Version(lastVerS) : null; + var lastVer = lastVerS != null ? new SemVer.Version(lastVerS.Split('p').First()) : null; if (lastVer != null && gameVer != lastVer) {