mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-03 16:51:30 +00:00
NOISSUE Some happy little refactors
This commit is contained in:
@@ -481,7 +481,7 @@ bool PackProfile::migratePreComponentConfig()
|
||||
}
|
||||
else if(!intendedVersion.isEmpty())
|
||||
{
|
||||
auto metaVersion = ENV.metadataIndex()->get(uid, intendedVersion);
|
||||
auto metaVersion = ENV->metadataIndex()->get(uid, intendedVersion);
|
||||
component = new Component(this, metaVersion);
|
||||
}
|
||||
else
|
||||
@@ -546,7 +546,7 @@ bool PackProfile::migratePreComponentConfig()
|
||||
auto patchVersion = d->getOldConfigVersion(uid);
|
||||
if(!patchVersion.isEmpty() && !loadedComponents.contains(uid))
|
||||
{
|
||||
auto patch = new Component(this, ENV.metadataIndex()->get(uid, patchVersion));
|
||||
auto patch = new Component(this, ENV->metadataIndex()->get(uid, patchVersion));
|
||||
patch->setOrder(order);
|
||||
loadedComponents[uid] = patch;
|
||||
}
|
||||
|
Reference in New Issue
Block a user