From 108bc15cb2400bdb221b097bc6f5a34b120e806f Mon Sep 17 00:00:00 2001 From: Misode Date: Sat, 12 Apr 2025 17:15:13 +0200 Subject: [PATCH] Add 1.21.6 and set default to 1.21.5 --- index.html | 2 +- src/app/services/Versions.ts | 4 ++-- src/config.json | 18 +++++++++++------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index b02d769f..cca7854a 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.2', + version: localStorage.getItem('schema_version') || '1.21.5', 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 8117624b..df6c37d1 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'] 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'] as const export type VersionId = typeof VersionIds[number] -export const DEFAULT_VERSION: VersionId = '1.21.4' +export const DEFAULT_VERSION: VersionId = '1.21.5' 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 1bb533b3..8fb178e2 100644 --- a/src/config.json +++ b/src/config.json @@ -144,15 +144,13 @@ "id": "1.20.3", "ref": "1.20.4", "name": "1.20.3 — 1.20.4", - "pack_format": 26, - "show": true + "pack_format": 26 }, { "id": "1.20.5", "ref": "1.20.6", "name": "1.20.5 — 1.20.6", - "pack_format": 41, - "show": true + "pack_format": 41 }, { "id": "1.21", @@ -165,8 +163,7 @@ "id": "1.21.2", "ref": "1.21.3", "name": "1.21.2 — 1.21.3", - "pack_format": 57, - "show": true + "pack_format": 57 }, { "id": "1.21.4", @@ -179,7 +176,14 @@ "id": "1.21.5", "ref": "1.21.5", "name": "1.21.5", - "pack_format": 62, + "pack_format": 71, + "show": true + }, + { + "id": "1.21.6", + "dynamic": true, + "name": "1.21.6", + "pack_format": 72, "show": true } ],