mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
Change lagacy folder names for 1.21
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user