From 0d6c8057d64f4f5ec61fec4ffd57abdc8b099bb2 Mon Sep 17 00:00:00 2001 From: ghorsington Date: Sun, 6 Dec 2020 22:31:21 +0200 Subject: [PATCH] Default build version to 0 if it's not defined --- BepInEx.Core/Contract/Attributes.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BepInEx.Core/Contract/Attributes.cs b/BepInEx.Core/Contract/Attributes.cs index eb15914..f18ff3f 100644 --- a/BepInEx.Core/Contract/Attributes.cs +++ b/BepInEx.Core/Contract/Attributes.cs @@ -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 { }