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)

View File

@@ -122,8 +122,7 @@
"id": "1.19.4",
"ref": "1.19.4",
"name": "1.19.4",
"pack_format": 12,
"show": true
"pack_format": 12
},
{
"id": "1.20",
@@ -161,9 +160,9 @@
},
{
"id": "1.21.2",
"dynamic": true,
"name": "1.21.2",
"pack_format": 52,
"ref": "1.21.3",
"name": "1.21.2 — 1.21.3",
"pack_format": 57,
"show": true
}
],