Fix #314 Make 1.19.3 the default version

This commit is contained in:
Misode
2022-12-23 18:26:19 +01:00
parent 882177cd46
commit 5c9fa1eaaf
3 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import { DRAFT_PROJECT } from './contexts/index.js'
import type { ColormapType } from './previews/Colormap.js'
import { ColormapTypes } from './previews/Colormap.js'
import type { VersionId } from './services/index.js'
import { VersionIds } from './services/index.js'
import { DEFAULT_VERSION, VersionIds } from './services/index.js'
export namespace Store {
export const ID_LANGUAGE = 'language'
@@ -35,7 +35,7 @@ export namespace Store {
if (version && VersionIds.includes(version as VersionId)) {
return version as VersionId
}
return '1.19'
return DEFAULT_VERSION
}
export function getVersion(): VersionId | null {

View File

@@ -8,7 +8,7 @@ import { fetchData } from './DataFetcher.js'
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3'] as const
export type VersionId = typeof VersionIds[number]
export const DEFAULT_VERSION: VersionId = '1.19'
export const DEFAULT_VERSION: VersionId = '1.19.3'
export type BlockStateRegistry = {
[block: string]: {