This commit is contained in:
DaanV2
2021-10-04 12:00:20 +02:00
parent e8914d0e31
commit b327747d95
3 changed files with 77 additions and 196 deletions

View File

@@ -35,7 +35,12 @@ export namespace Schema {
if (m) {
const schema = m.url.replace("https://raw.githubusercontent.com/Blockception/Minecraft-bedrock-json-schemas/main/", rootfolder);
schemas.push({ uri: schema, fileMatch: m.fileMatch });
let matches = m.fileMatch;
if (typeof matches === "string") {
matches = [matches];
}
schemas.push({ uri: schema, fileMatch: matches });
}
});