Skip to content

Commit

Permalink
Update authlib-injector
Browse files Browse the repository at this point in the history
  • Loading branch information
Octol1ttle committed Jun 12, 2023
1 parent 3a0bd02 commit 03f000f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions launcher/minecraft/launch/DirectJavaLaunch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ void DirectJavaLaunch::executeTask()
auto accounts = APPLICATION->accounts();
auto account = accounts->at(accounts->findAccountByProfileId(m_session->uuid));
if (!account->isMSA() && !QHostInfo::fromName("account.ely.by").addresses().empty()) {
auto entry = APPLICATION->metacache()->resolveEntry("general", "authlib-injector-1.2.2.jar");
auto entry = APPLICATION->metacache()->resolveEntry("general", "authlib-injector-1.2.3.jar");
entry->setStale(true);

auto netJob = new NetJob("Injector download", APPLICATION->network());
netJob->addNetAction(Net::Download::makeCached(QUrl("https://github.com/yushijinhun/authlib-injector/releases/download/v1.2.2/authlib-injector-1.2.2.jar"), entry));
netJob->addNetAction(Net::Download::makeCached(QUrl("https://github.com/yushijinhun/authlib-injector/releases/download/v1.2.3/authlib-injector-1.2.3.jar"), entry));
netJob->start();

args.append("-javaagent:" + entry->getFullPath() + "=https://account.ely.by/api/authlib-injector");
Expand Down
4 changes: 2 additions & 2 deletions launcher/minecraft/launch/LauncherPartLaunch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ void LauncherPartLaunch::executeTask()
auto accounts = APPLICATION->accounts();
auto account = accounts->at(accounts->findAccountByProfileId(m_session->uuid));
if (!account->isMSA() && !QHostInfo::fromName("account.ely.by").addresses().empty()) {
auto entry = APPLICATION->metacache()->resolveEntry("general", "authlib-injector-1.2.2.jar");
auto entry = APPLICATION->metacache()->resolveEntry("general", "authlib-injector-1.2.3.jar");
entry->setStale(true);

auto netJob = new NetJob("Injector download", APPLICATION->network());
netJob->addNetAction(Net::Download::makeCached(QUrl("https://github.com/yushijinhun/authlib-injector/releases/download/v1.2.2/authlib-injector-1.2.2.jar"), entry));
netJob->addNetAction(Net::Download::makeCached(QUrl("https://github.com/yushijinhun/authlib-injector/releases/download/v1.2.3/authlib-injector-1.2.3.jar"), entry));
netJob->start();

args.append("-javaagent:" + entry->getFullPath() + "=https://account.ely.by/api/authlib-injector");
Expand Down

0 comments on commit 03f000f

Please sign in to comment.