refactor: make Minecraft resource URL override consistent with other overrides

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-01-25 16:21:49 +05:00
parent 33deb1da3f
commit 3f0af19ed3
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF
5 changed files with 21 additions and 7 deletions

View file

@ -52,6 +52,7 @@
#include "Application.h"
#include "net/NetRequest.h"
#include "update/AssetUpdateTask.h"
namespace {
QSet<QString> collectPathsFromDir(QString dirPath)
@ -298,7 +299,7 @@ QString AssetObject::getLocalPath()
QUrl AssetObject::getUrl()
{
auto resourceURL = APPLICATION->settings()->get("ResourceURL").toString();
auto resourceURL = AssetUpdateTask::resourceUrl();
return resourceURL + getRelPath();
}