diff --git a/src/app/Utils.ts b/src/app/Utils.ts index 1a5ae9ad..71c03b7b 100644 --- a/src/app/Utils.ts +++ b/src/app/Utils.ts @@ -585,10 +585,10 @@ export function parseGitPatch(patch: string) { return result } -const legacyTags = new Set(['tag/item', 'tag/block', 'tag/fluid', 'tag/entity_type', 'tag/game_event']) +const legacyFolders = new Set(['loot_table', 'predicate', 'item_modifier', 'advancement', 'recipe', 'tag/function', 'tag/item', 'tag/block', 'tag/fluid', 'tag/entity_type', 'tag/game_event']) export function genPath(gen: ConfigGenerator, version: VersionId) { const path = gen.path ?? gen.id - if (!checkVersion(version, '1.21') && legacyTags.has(gen.id)) { + if (!checkVersion(version, '1.21') && legacyFolders.has(gen.id)) { return path + 's' } return path diff --git a/src/config.json b/src/config.json index 493e37f2..8837334b 100644 --- a/src/config.json +++ b/src/config.json @@ -164,21 +164,18 @@ { "id": "loot_table", "url": "loot-table", - "path": "loot_tables", "schema": "loot_table", "wiki": "https://minecraft.wiki/w/Loot_table" }, { "id": "predicate", "url": "predicate", - "path": "predicates", "schema": "predicate", "wiki": "https://minecraft.wiki/w/Predicate" }, { "id": "item_modifier", "url": "item-modifier", - "path": "item_modifiers", "schema": "item_modifier", "minVersion": "1.17", "wiki": "https://minecraft.wiki/w/Item_modifier" @@ -186,14 +183,12 @@ { "id": "advancement", "url": "advancement", - "path": "advancements", "schema": "advancement", "wiki": "https://minecraft.wiki/w/Custom_advancement" }, { "id": "recipe", "url": "recipe", - "path": "recipes", "schema": "recipe", "wiki": "https://minecraft.wiki/w/Recipe#JSON_format" },