Update Lithostitched partner (#539)

* Add enchantment tag generator

* Update Lithostitched partner

* fix config.json

* Refactor a bit

---------

Co-authored-by: Misode <misoloo64@gmail.com>
This commit is contained in:
Apollo
2024-06-13 23:54:10 -04:00
committed by GitHub
parent 86b3bed22a
commit f478813a46
4 changed files with 18 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
import type { CollectionRegistry, INode, SchemaRegistry } from '@mcschema/core'
import { ChoiceNode, DataModel, Reference, StringNode } from '@mcschema/core'
import config from '../Config.js'
import { initPartners } from '../partners/index.js'
import { message } from '../Utils.js'
import { initPartners } from '../partners/index.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
@@ -69,7 +69,7 @@ async function getVersion(id: VersionId): Promise<VersionData> {
const blockStates: BlockStateRegistry = {}
await fetchData(id, collections, blockStates)
const schemas = mcschema.getSchemas(collections)
initPartners(schemas, collections)
initPartners(schemas, collections, id)
Versions[id] = { collections, schemas, blockStates }
return Versions[id]
} catch (e) {