mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 04:46:57 +03:00
GH-1320 do not fail when launcher part can't change sys_paths
This commit is contained in:
parent
a5b8f22eab
commit
2da3162206
1 changed files with 3 additions and 2 deletions
|
|
@ -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 ...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue