GH-1320 do not fail when launcher part can't change sys_paths

This commit is contained in:
Petr Mrázek 2015-12-03 23:27:26 +01:00
parent a5b8f22eab
commit 2da3162206

View File

@ -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 ...