diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-12-03 23:27:26 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-12-03 23:27:26 +0100 |
commit | 2da31622060810b1f3b97aadbe374ba40cbd4bae (patch) | |
tree | c568d1647eb3626cb89444921aa527c06df5219a | |
parent | a5b8f22eab508b606bed26923b020c8de02bfcff (diff) | |
download | MultiMC-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.java | 5 |
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 ... |