Add support for 1.21.2 (24w33a)

This commit is contained in:
Misode
2024-08-17 21:26:13 +02:00
parent 60d59e9f34
commit 0e282bd832
5 changed files with 37 additions and 4 deletions

View File

@@ -1,11 +1,11 @@
import type { CollectionRegistry, INode, SchemaRegistry } from '@mcschema/core'
import { ChoiceNode, DataModel, Reference, StringNode } from '@mcschema/core'
import config from '../Config.js'
import { message } from '../Utils.js'
import { initPartners } from '../partners/index.js'
import { message } from '../Utils.js'
import { fetchData } from './DataFetcher.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'] 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'] as const
export type VersionId = typeof VersionIds[number]
export const DEFAULT_VERSION: VersionId = '1.21'
@@ -53,6 +53,7 @@ const versionGetter: {
'1.20.3': () => import('@mcschema/java-1.20.3'),
'1.20.5': () => import('@mcschema/java-1.20.5'),
1.21: () => import('@mcschema/java-1.21'),
'1.21.2': () => import('@mcschema/java-1.21.2'),
}
export let CachedDecorator: INode<any>