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 306590658..556c1901b 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,11 @@ 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) || fromAnalyzer(is, new MethodConstantRetVisitor("getMinecraftVersion"), builder))) { + if ((is = cp.getInputStream("net/minecraft/server/MinecraftServer.class")) != null && fromAnalyzer(is, new MethodConstantVisitor("run"), builder)) { + return; + } + + if ((is = cp.getInputStream("net/minecraft/server/MinecraftServer.class")) != null && fromAnalyzer(is, new MethodConstantRetVisitor("getMinecraftVersion"), builder)) { return; }