mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2025-01-28 18:32:48 +00:00
NOISSUE Fix --world argument when launcher already running
This commit is contained in:
parent
5ff03584a5
commit
89ac58256c
@ -1197,6 +1197,7 @@ void Application::messageReceived(const QByteArray& message)
|
||||
{
|
||||
QString id = received.args["id"];
|
||||
QString server = received.args["server"];
|
||||
QString world = received.args["world"];
|
||||
QString profile = received.args["profile"];
|
||||
bool offline = received.args["offline_enabled"] == "true";
|
||||
QString offlineName = received.args["offline_name"];
|
||||
@ -1214,9 +1215,11 @@ void Application::messageReceived(const QByteArray& message)
|
||||
return;
|
||||
}
|
||||
|
||||
QuickPlayTargetPtr serverObject = nullptr;
|
||||
QuickPlayTargetPtr quickPlayTarget = nullptr;
|
||||
if(!server.isEmpty()) {
|
||||
serverObject = std::make_shared<QuickPlayTarget>(QuickPlayTarget::parseMultiplayer(server));
|
||||
quickPlayTarget = std::make_shared<QuickPlayTarget>(QuickPlayTarget::parseMultiplayer(server));
|
||||
} else if(!world.isEmpty()) {
|
||||
quickPlayTarget = std::make_shared<QuickPlayTarget>(QuickPlayTarget::parseSingleplayer(world));
|
||||
}
|
||||
|
||||
MinecraftAccountPtr accountObject;
|
||||
@ -1232,7 +1235,7 @@ void Application::messageReceived(const QByteArray& message)
|
||||
instance,
|
||||
!offline,
|
||||
nullptr,
|
||||
serverObject,
|
||||
quickPlayTarget,
|
||||
accountObject,
|
||||
offlineName
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user