mirror of
https://github.com/misode/misode.github.io.git
synced 2026-05-04 14:42:53 +00:00
Fix mcdata registry url
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { CollectionRegistry } from '@mcschema/core'
|
||||
|
||||
export const mcdata = (version: string, registry: string) => {
|
||||
return `https://raw.githubusercontent.com/Arcensoth/mcdata/${version}/processed/reports/registries/${registry}/${registry.split('/').pop()}.min.json`
|
||||
}
|
||||
return `https://raw.githubusercontent.com/Arcensoth/mcdata/${version}/processed/reports/registries/${registry}/data.min.json`
|
||||
}
|
||||
|
||||
export const RegistryFetcher = async (target: CollectionRegistry, registries: string[], version = 'master') => {
|
||||
await Promise.all(registries.map(async r => {
|
||||
|
||||
Reference in New Issue
Block a user