Update spyglass and add 1.21.11 support

This commit is contained in:
Misode
2025-10-20 02:01:08 +02:00
parent 9c1ed06096
commit 7e42d13ac1
5 changed files with 101 additions and 94 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
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', '1.21.4', '1.21.5', '1.21.6', '1.21.9'] as const
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', '1.21.4', '1.21.5', '1.21.6', '1.21.9', '1.21.11'] as const
export type VersionId = typeof VersionIds[number]
export const DEFAULT_VERSION: VersionId = '1.21.6'
export const DEFAULT_VERSION: VersionId = '1.21.9'
export function checkVersion(versionId: string, minVersionId: string | undefined, maxVersionId?: string) {
const version = config.versions.findIndex(v => v.id === versionId)
+10 -3
View File
@@ -191,16 +191,23 @@
},
{
"id": "1.21.6",
"ref": "1.21.7",
"ref": "1.21.8",
"name": "1.21.6 — 1.21.8",
"pack_format": 81,
"show": true
},
{
"id": "1.21.9",
"ref": "1.21.10",
"name": "1.21.9 — 1.21.10",
"pack_format": 88,
"show": true
},
{
"id": "1.21.11",
"dynamic": true,
"name": "1.21.9",
"pack_format": 83,
"name": "1.21.11",
"pack_format": 90,
"show": true
}
],