Change lagacy folder names for 1.21

This commit is contained in:
Misode
2024-05-28 23:40:39 +02:00
parent 50ae97207d
commit d849fca07e
2 changed files with 2 additions and 7 deletions

View File

@@ -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

View File

@@ -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"
},