Skip to content

Commit

Permalink
chore(knossos): auto resource pack versions (1.20-1.21.4) (#3042)
Browse files Browse the repository at this point in the history
* Add resource pack versions (1.20-1.21.4)

* prettier

---------

Co-authored-by: Geometrically <[email protected]>
  • Loading branch information
realooffyy and Geometrically authored Dec 21, 2024
1 parent a873e66 commit 246df0d
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions apps/frontend/src/helpers/infer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}
}
Expand Down

0 comments on commit 246df0d

Please sign in to comment.