mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +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
|
||||
|
||||
Reference in New Issue
Block a user