Skip to content

Commit

Permalink
Added support for 1.20.5 in 2024 in McVersionLookup (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
WinPlay02 authored Jan 17, 2024
1 parent 6645f18 commit 602cc2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ protected static String getRelease(String version) {
int year = Integer.parseInt(matcher.group(1));
int week = Integer.parseInt(matcher.group(2));

if (year >= 23 && week >= 51) {
if (year == 23 && week >= 51 || year >= 24) {
return "1.20.5";
} else if (year == 23 && week >= 40 && week <= 46) {
return "1.20.3";
Expand Down

0 comments on commit 602cc2d

Please sign in to comment.