Skip to content

Commit

Permalink
Apply changes from previous commit to servers too.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSVK12 committed Dec 15, 2023
1 parent 2c6d334 commit b0d4cb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b0d4cb5

Please sign in to comment.