Skip to content

Commit

Permalink
try to fix authlib injector
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoshka2004 committed Mar 16, 2024
1 parent c9b917f commit 1e8d537
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions launcher/minecraft/MinecraftInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ QStringList MinecraftInstance::extraArguments()
}
auto agents = m_components->getProfile()->getAgents();
for (auto agent : agents) {
if (MANAGED_AGENTS.find(agent->library()->artifactPrefix().toStdString()) != MANAGED_AGENTS.end()) {
continue;
}
QStringList jar, temp1, temp2, temp3;
agent->library()->getApplicableFiles(runtimeContext(), jar, temp1, temp2, temp3, getLocalLibraryPath());
list.append("-javaagent:" + jar[0] + (agent->argument().isEmpty() ? "" : "=" + agent->argument()));
Expand Down

0 comments on commit 1e8d537

Please sign in to comment.