Skip to content

Commit

Permalink
Added support for 1.21.2 in McVersionLookup
Browse files Browse the repository at this point in the history
  • Loading branch information
WinPlay02 committed Aug 15, 2024
1 parent 970c08b commit 72d7db5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ protected static String getRelease(String version) {
int year = Integer.parseInt(matcher.group(1));
int week = Integer.parseInt(matcher.group(2));

if (year >= 24 && week >= 18) {
if (year >= 24 && week >= 33) {
return "1.21.2";
} else if (year >= 24 && week >= 18 && week <= 21) {
return "1.21";
} else if (year == 23 && week >= 51 || year == 24 && week <= 14) {
return "1.20.5";
Expand Down

0 comments on commit 72d7db5

Please sign in to comment.