summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-12-03 23:27:26 +0100
committerPetr Mrázek <peterix@gmail.com>2015-12-03 23:27:26 +0100
commit2da31622060810b1f3b97aadbe374ba40cbd4bae (patch)
treec568d1647eb3626cb89444921aa527c06df5219a
parenta5b8f22eab508b606bed26923b020c8de02bfcff (diff)
downloadMultiMC-2da31622060810b1f3b97aadbe374ba40cbd4bae.tar
MultiMC-2da31622060810b1f3b97aadbe374ba40cbd4bae.tar.gz
MultiMC-2da31622060810b1f3b97aadbe374ba40cbd4bae.tar.lz
MultiMC-2da31622060810b1f3b97aadbe374ba40cbd4bae.tar.xz
MultiMC-2da31622060810b1f3b97aadbe374ba40cbd4bae.zip
GH-1320 do not fail when launcher part can't change sys_paths
-rw-r--r--depends/launcher/org/multimc/onesix/OneSixLauncher.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/depends/launcher/org/multimc/onesix/OneSixLauncher.java b/depends/launcher/org/multimc/onesix/OneSixLauncher.java
index 8ef6376d..d94d06b0 100644
--- a/depends/launcher/org/multimc/onesix/OneSixLauncher.java
+++ b/depends/launcher/org/multimc/onesix/OneSixLauncher.java
@@ -373,11 +373,12 @@ public class OneSixLauncher implements Launcher
Field fieldSysPath = ClassLoader.class.getDeclaredField("sys_paths");
fieldSysPath.setAccessible( true );
fieldSysPath.set( null, null );
- } catch (Exception e)
+ }
+ catch (Exception e)
{
System.err.println("Failed to set the native library path:");
e.printStackTrace(System.err);
- return -1;
+ System.err.println("Minecraft might fail to launch...");
}
// grab the system classloader and ...