mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-03 08:41:42 +00:00
NOISSUE Add support for launching worlds directly via Quick Play
This commit is contained in:
@@ -55,6 +55,8 @@ public class OneSixLauncher implements Launcher
|
||||
private String serverPort;
|
||||
private boolean useQuickPlay;
|
||||
|
||||
private String joinWorld;
|
||||
|
||||
// the much abused system classloader, for convenience (for further abuse)
|
||||
private ClassLoader cl;
|
||||
|
||||
@@ -82,6 +84,7 @@ public class OneSixLauncher implements Launcher
|
||||
serverAddress = params.firstSafe("serverAddress", null);
|
||||
serverPort = params.firstSafe("serverPort", null);
|
||||
useQuickPlay = params.firstSafe("useQuickPlay").startsWith("1");
|
||||
joinWorld = params.firstSafe("joinWorld", null);
|
||||
|
||||
cwd = System.getProperty("user.dir");
|
||||
|
||||
@@ -185,6 +188,12 @@ public class OneSixLauncher implements Launcher
|
||||
mcparams.add(Integer.toString(winSizeH));
|
||||
}
|
||||
|
||||
if (joinWorld != null)
|
||||
{
|
||||
mcparams.add("--quickPlaySingleplayer");
|
||||
mcparams.add(joinWorld);
|
||||
}
|
||||
|
||||
if (serverAddress != null)
|
||||
{
|
||||
if (useQuickPlay)
|
||||
|
Reference in New Issue
Block a user