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