Skip to content

Commit

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

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

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
  • Loading branch information
2 people authored and AlexIIL committed Nov 16, 2024
1 parent c42b71c commit 9df51c3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,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 >= 33) {
if (year == 24 && week >= 44 || year >= 25) {
return "1.21.4";
} else if (year == 24 && week >= 33 && week <= 40) {
return "1.21.2";
} else if (year == 24 && week >= 18 && week <= 21) {
return "1.21";
Expand Down

0 comments on commit 9df51c3

Please sign in to comment.