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