Skip to content

Commit

Permalink
Added support for 1.21.2 in McVersionLookup (#964)
Browse files Browse the repository at this point in the history
* Added support for 1.21.2 in McVersionLookup

* Update minecraft/src/main/java/net/fabricmc/loader/impl/game/minecraft/McVersionLookup.java

Co-authored-by: modmuss <[email protected]>

---------

Co-authored-by: modmuss <[email protected]>
  • Loading branch information
WinPlay02 and modmuss50 authored Aug 15, 2024
1 parent 970c08b commit 991d38d
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 991d38d

Please sign in to comment.