From 246df0d107a6ca29528a37abe2a3978bb4c8294f Mon Sep 17 00:00:00 2001 From: ooffyy <72337907+realooffyy@users.noreply.github.com> Date: Sat, 21 Dec 2024 23:49:37 +0000 Subject: [PATCH] chore(knossos): auto resource pack versions (1.20-1.21.4) (#3042) * Add resource pack versions (1.20-1.21.4) * prettier --------- Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com> --- apps/frontend/src/helpers/infer.js | 93 ++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/apps/frontend/src/helpers/infer.js b/apps/frontend/src/helpers/infer.js index 406f7e917..5629eb06e 100644 --- a/apps/frontend/src/helpers/infer.js +++ b/apps/frontend/src/helpers/infer.js @@ -403,6 +403,99 @@ export const inferVersionInfo = async function (rawFile, project, gameVersions) case 13: newGameVersions.push("1.19.4"); break; + case 14: + newGameVersions = getRange("23w14a", "23w16a"); + break; + case 15: + newGameVersions = getRange("1.20", "1.20.1"); + break; + case 16: + newGameVersions.push("23w31a"); + break; + case 17: + newGameVersions = getRange("23w32a", "1.20.2-pre1"); + break; + case 18: + newGameVersions.push("1.20.2"); + break; + case 19: + newGameVersions.push("23w42a"); + break; + case 20: + newGameVersions = getRange("23w43a", "23w44a"); + break; + case 21: + newGameVersions = getRange("23w45a", "23w46a"); + break; + case 22: + newGameVersions = getRange("1.20.3", "1.20.4"); + break; + case 24: + newGameVersions = getRange("24w03a", "24w04a"); + break; + case 25: + newGameVersions = getRange("24w05a", "24w05b"); + break; + case 26: + newGameVersions = getRange("24w06a", "24w07a"); + break; + case 28: + newGameVersions = getRange("24w09a", "24w10a"); + break; + case 29: + newGameVersions.push("24w11a"); + break; + case 30: + newGameVersions.push("24w12a"); + break; + case 31: + newGameVersions = getRange("24w13a", "1.20.5-pre3"); + break; + case 32: + newGameVersions = getRange("1.20.5", "1.20.6"); + break; + case 33: + newGameVersions = getRange("24w18a", "24w20a"); + break; + case 34: + newGameVersions = getRange("1.21", "1.21.1"); + break; + case 35: + newGameVersions.push("24w33a"); + break; + case 36: + newGameVersions = getRange("24w34a", "24w35a"); + break; + case 37: + newGameVersions.push("24w36a"); + break; + case 38: + newGameVersions.push("24w37a"); + break; + case 39: + newGameVersions = getRange("24w38a", "24w39a"); + break; + case 40: + newGameVersions.push("24w40a"); + break; + case 41: + newGameVersions = getRange("1.21.2-pre1", "1.21.2-pre2"); + break; + case 42: + newGameVersions = getRange("1.21.2", "1.21.3"); + break; + case 43: + newGameVersions.push("24w44a"); + break; + case 44: + newGameVersions.push("24w45a"); + break; + case 45: + newGameVersions.push("24w46a"); + break; + case 46: + newGameVersions.push("1.21.4"); + break; default: } }