mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Default build version to 0 if it's not defined
This commit is contained in:
1 parent
7d4bc5ddf4
commit
0d6c8057d6
1 file changed
+1
-1
@@ -53,7 +53,7 @@ namespace BepInEx
|
||||
{
|
||||
var longVersion = new System.Version(version);
|
||||
|
||||
return new SemVer.Version(longVersion.Major, longVersion.Minor, longVersion.Build);
|
||||
return new SemVer.Version(longVersion.Major, longVersion.Minor, longVersion.Build != -1 ? longVersion.Build : 0);
|
||||
}
|
||||
catch { }
|
||||
|
||||
|
||||
Reference in new issue
Block a user