This commit is contained in:
Misode
2024-10-26 22:47:52 +02:00
3 changed files with 7 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ import config from '../Config.js'
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3', '1.19.4', '1.20', '1.20.2', '1.20.3', '1.20.5', '1.21', '1.21.2'] as const
export type VersionId = typeof VersionIds[number]
export const DEFAULT_VERSION: VersionId = '1.21'
export const DEFAULT_VERSION: VersionId = '1.21.2'
export function checkVersion(versionId: string, minVersionId: string | undefined, maxVersionId?: string) {
const version = config.versions.findIndex(v => v.id === versionId)