From 05f6c2e13c682330fbbfd53b4f9b342432a953f8 Mon Sep 17 00:00:00 2001 From: DitFranXX Date: Mon, 31 May 2021 15:03:58 +0900 Subject: [PATCH] fix: :bug: Fix if major version bump up to 2.0 --- gitadora@asphyxia/utils/index.ts | 2 +- museca@asphyxia/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gitadora@asphyxia/utils/index.ts b/gitadora@asphyxia/utils/index.ts index 367041a..cfb7a39 100644 --- a/gitadora@asphyxia/utils/index.ts +++ b/gitadora@asphyxia/utils/index.ts @@ -15,7 +15,7 @@ export function isRequiredCoreVersion(major: number, minor: number) { // version value exposed since Core v1.19 const core_major = typeof CORE_VERSION_MAJOR === "number" ? CORE_VERSION_MAJOR : 1 const core_minor = typeof CORE_VERSION_MINOR === "number" ? CORE_VERSION_MINOR : 18 - return core_major >= major && core_minor >= minor + return core_major > major || (core_major === major && core_minor >= minor) }; export function isAsphyxiaDebugMode() { diff --git a/museca@asphyxia/utils.ts b/museca@asphyxia/utils.ts index dfa7c78..42ca965 100644 --- a/museca@asphyxia/utils.ts +++ b/museca@asphyxia/utils.ts @@ -7,5 +7,5 @@ export function isRequiredVersion(major: number, minor: number) { // version value exposed since Core v1.19 const core_major = typeof CORE_VERSION_MAJOR === "number" ? CORE_VERSION_MAJOR : 1 const core_minor = typeof CORE_VERSION_MINOR === "number" ? CORE_VERSION_MINOR : 18 - return core_major >= major && core_minor >= minor + return core_major > major || (core_major === major && core_minor >= minor) } \ No newline at end of file