Hotfix .png.mcmeta implementation
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled

This commit is contained in:
Misode
2025-05-20 20:46:25 +02:00
parent 6684bb0444
commit 207223dfc6

View File

@@ -257,7 +257,7 @@ export class SpyglassService {
return `${UNSAVED_URI}pack.mcmeta`
}
const pack = gen.tags?.includes('assets') ? 'assets' : 'data'
return `${UNSAVED_URI}${pack}/draft/${genPath(gen, this.version)}/draft${gen.ext}`
return `${UNSAVED_URI}${pack}/draft/${genPath(gen, this.version)}/draft${gen.ext ?? '.json'}`
}
public watchFile(uri: string, handler: (docAndNode: core.DocAndNode) => void) {