From b0d4cb529d4a17d7d1e1f83d405dcf163a7ca9ef Mon Sep 17 00:00:00 2001 From: MartinSVK12 <37455793+MartinSVK12@users.noreply.github.com> Date: Sat, 16 Dec 2023 00:35:03 +0100 Subject: [PATCH] Apply changes from previous commit to servers too. --- .../fabricmc/loader/impl/game/minecraft/McVersionLookup.java | 2 +- 1 file changed, 1 insertion(+), 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 08975a02c..306590658 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 @@ -132,7 +132,7 @@ public static void fillVersionFromJar(SimpleClassPath cp, McVersion.Builder buil } // version-like String constant used in MinecraftServer.run or another MinecraftServer method - if ((is = cp.getInputStream("net/minecraft/server/MinecraftServer.class")) != null && fromAnalyzer(is, new MethodConstantVisitor("run"), builder)) { + if ((is = cp.getInputStream("net/minecraft/server/MinecraftServer.class")) != null && (fromAnalyzer(is, new MethodConstantVisitor("run"), builder) || fromAnalyzer(is, new MethodConstantRetVisitor("getMinecraftVersion"), builder))) { return; }