Skip to content

Commit a1f0566

Browse files
committed
Move Patches call before Lib load
1 parent e45bdf8 commit a1f0566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/kettingpowered/launcher/KettingLauncher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ void launch() throws Exception {
332332
addToClassPath(KettingFileVersioned.FORGE_PATCHED_JAR);
333333
addToClassPath(KettingFileVersioned.SERVER_JAR);
334334
}
335+
downloadMCP.join();
336+
if (Patcher.checkUpdateNeeded()) new Patcher();
335337

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

346347

347-
if (Patcher.checkUpdateNeeded()) new Patcher();
348348

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

0 commit comments

Comments
 (0)