Add font generator

This commit is contained in:
Misode
2022-07-11 03:37:10 +02:00
parent 414a361c65
commit fdb8874454
7 changed files with 60 additions and 50 deletions

View File

@@ -85,7 +85,7 @@ export async function fetchPreset(versionId: VersionId, registry: string, id: st
if (id.startsWith('immersive_weathering:')) {
url = `https://raw.githubusercontent.com/AstralOrdana/Immersive-Weathering/main/src/main/resources/data/immersive_weathering/block_growths/${id.slice(21)}.json`
} else {
const type = ['blockstates', 'models'].includes(registry) ? 'assets' : 'data'
const type = ['blockstates', 'models', 'font'].includes(registry) ? 'assets' : 'data'
url = `${mcmeta(version, type)}/${type}/minecraft/${registry}/${id}.json`
}
const res = await fetch(url)