From 8c2f343939c17b179b7c32f8be3f97fa15da8993 Mon Sep 17 00:00:00 2001 From: WinPlay02 <25015295+WinPlay02@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:46:52 +0100 Subject: [PATCH] Added support for 1.21.4 in McVersionLookup (#996) * 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 --- .../fabricmc/loader/impl/game/minecraft/McVersionLookup.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/minecraft/src/main/java/net/fabricmc/loader/impl/game/minecraft/McVersionLookup.java b/minecraft/src/main/java/net/fabricmc/loader/impl/game/minecraft/McVersionLookup.java index c28f9dac5..b431abbdc 100644 --- a/minecraft/src/main/java/net/fabricmc/loader/impl/game/minecraft/McVersionLookup.java +++ b/minecraft/src/main/java/net/fabricmc/loader/impl/game/minecraft/McVersionLookup.java @@ -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 >= 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";