Fix a NullPointerException when launching ≤ 1.6.4
This commit is contained in:
1 parent
bf619cbe62
commit
33b00e417c
3 files changed
+11
-7
No files matched your search
@@ -62,12 +62,14 @@ public class PLaunchApp {
|
||||
}
|
||||
System.out.println("Launching Minecraft " + mVersion.id);
|
||||
String configPath;
|
||||
if (mVersion.logging.client.file.id.equals("client-1.12.xml")) {
|
||||
configPath = Tools.DIR_BUNDLE + "/log4j-rce-patch-1.12.xml";
|
||||
} else {
|
||||
configPath = Tools.DIR_GAME_NEW + "/" + mVersion.logging.client.file.id;
|
||||
if (mVersion.logging != null) {
|
||||
if (mVersion.logging.client.file.id.equals("client-1.12.xml")) {
|
||||
configPath = Tools.DIR_BUNDLE + "/log4j-rce-patch-1.12.xml";
|
||||
} else {
|
||||
configPath = Tools.DIR_GAME_NEW + "/" + mVersion.logging.client.file.id;
|
||||
}
|
||||
System.setProperty("log4j.configurationFile", configPath);
|
||||
}
|
||||
System.setProperty("log4j.configurationFile", configPath);
|
||||
Tools.launchMinecraft(AccountJNI.CURRENT_ACCOUNT, mVersion);
|
||||
} catch (Throwable th) {
|
||||
Tools.showError(th);
|
||||
|
||||
Reference in new issue
Block a user