From 449e8a2b14991f92dff942daf5fc79e5bfed82c0 Mon Sep 17 00:00:00 2001 From: Misode Date: Thu, 7 Aug 2025 04:04:21 +0200 Subject: [PATCH] Add version 1.21.9 and set default to 1.21.6 --- index.html | 2 +- src/app/services/Versions.ts | 4 ++-- src/config.json | 9 ++++++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index cca7854a..68f075d3 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ gtag('config', 'G-S982VZS08T', { send_page_view: false, theme: localStorage.getItem('theme') || 'default', - version: localStorage.getItem('schema_version') || '1.21.5', + version: localStorage.getItem('schema_version') || '1.21.6', locale: localStorage.getItem('language') || 'en', prefers_color_scheme: matchMedia('(prefers-color-scheme: light)').matches ? 'light' : matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'none', tree_view_mode: localStorage.getItem('misode_tree_view_mode') || 'default', diff --git a/src/app/services/Versions.ts b/src/app/services/Versions.ts index df6c37d1..9365ff1d 100644 --- a/src/app/services/Versions.ts +++ b/src/app/services/Versions.ts @@ -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'] 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'] as const export type VersionId = typeof VersionIds[number] -export const DEFAULT_VERSION: VersionId = '1.21.5' +export const DEFAULT_VERSION: VersionId = '1.21.6' export function checkVersion(versionId: string, minVersionId: string | undefined, maxVersionId?: string) { const version = config.versions.findIndex(v => v.id === versionId) diff --git a/src/config.json b/src/config.json index a2648c9a..2f9c9002 100644 --- a/src/config.json +++ b/src/config.json @@ -192,9 +192,16 @@ { "id": "1.21.6", "ref": "1.21.7", - "name": "1.21.6 — 1.21.7", + "name": "1.21.6 — 1.21.8", "pack_format": 81, "show": true + }, + { + "id": "1.21.9", + "dynamic": true, + "name": "1.21.9", + "pack_format": 83, + "show": true } ], "generators": [