Skip to content

Commit

Permalink
Move Patches call before Lib load
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3-M4513R committed Jan 20, 2024
1 parent e45bdf8 commit a1f0566
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ void launch() throws Exception {
addToClassPath(KettingFileVersioned.FORGE_PATCHED_JAR);
addToClassPath(KettingFileVersioned.SERVER_JAR);
}
downloadMCP.join();
if (Patcher.checkUpdateNeeded()) new Patcher();

Arrays.stream(libs.getLoadedLibs())
.map(url-> {
Expand All @@ -341,10 +343,8 @@ void launch() throws Exception {
throw new RuntimeException(e);
}
}).forEach(jarFile -> Main.INST.appendToSystemClassLoaderSearch(jarFile));
downloadMCP.join();


if (Patcher.checkUpdateNeeded()) new Patcher();

System.out.println("Launching Ketting...");
final List<String> arg_list = new ArrayList<>(args.args());
Expand Down

0 comments on commit a1f0566

Please sign in to comment.