mirror of
https://github.com/fn2006/PollyMC.git
synced 2025-09-12 08:35:13 -04:00
try to fix authlib injector
This commit is contained in:
parent
c9b917f21d
commit
1e8d5375d9
@ -437,6 +437,9 @@ QStringList MinecraftInstance::extraArguments()
|
|||||||
}
|
}
|
||||||
auto agents = m_components->getProfile()->getAgents();
|
auto agents = m_components->getProfile()->getAgents();
|
||||||
for (auto agent : agents) {
|
for (auto agent : agents) {
|
||||||
|
if (MANAGED_AGENTS.find(agent->library()->artifactPrefix().toStdString()) != MANAGED_AGENTS.end()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
QStringList jar, temp1, temp2, temp3;
|
QStringList jar, temp1, temp2, temp3;
|
||||||
agent->library()->getApplicableFiles(runtimeContext(), jar, temp1, temp2, temp3, getLocalLibraryPath());
|
agent->library()->getApplicableFiles(runtimeContext(), jar, temp1, temp2, temp3, getLocalLibraryPath());
|
||||||
list.append("-javaagent:" + jar[0] + (agent->argument().isEmpty() ? "" : "=" + agent->argument()));
|
list.append("-javaagent:" + jar[0] + (agent->argument().isEmpty() ? "" : "=" + agent->argument()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user