NOISSUE fix liteloader uid where it is hardcoded hardcoded
This commit is contained in:
parent
643d74f66c
commit
dff307557b
@ -510,7 +510,7 @@ bool OneSixInstance::setComponentVersion(const QString& uid, const QString& vers
|
||||
{
|
||||
settings()->set("ForgeVersion", version);
|
||||
}
|
||||
else if (uid == "com.liteloader")
|
||||
else if (uid == "com.mumfrey.liteloader")
|
||||
{
|
||||
settings()->set("LiteloaderVersion", version);
|
||||
}
|
||||
@ -536,7 +536,7 @@ QString OneSixInstance::getComponentVersion(const QString& uid) const
|
||||
{
|
||||
return settings()->get("ForgeVersion").toString();
|
||||
}
|
||||
else if(uid == "com.liteloader")
|
||||
else if(uid == "com.mumfrey.liteloader")
|
||||
{
|
||||
return settings()->get("LiteloaderVersion").toString();
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ void OneSixProfileStrategy::loadUserPatches()
|
||||
}
|
||||
};
|
||||
loadSpecial("net.minecraftforge", 5);
|
||||
loadSpecial("com.liteloader", 10);
|
||||
loadSpecial("com.mumfrey.liteloader", 10);
|
||||
|
||||
// now add all the patches by user sort order
|
||||
ProfileUtils::PatchOrder userOrder;
|
||||
|
@ -412,7 +412,7 @@ void VersionPage::on_forgeBtn_clicked()
|
||||
|
||||
void VersionPage::on_liteloaderBtn_clicked()
|
||||
{
|
||||
auto vlist = ENV.metadataIndex()->get("com.liteloader");
|
||||
auto vlist = ENV.metadataIndex()->get("com.mumfrey.liteloader");
|
||||
if(!vlist)
|
||||
{
|
||||
return;
|
||||
@ -424,7 +424,7 @@ void VersionPage::on_liteloaderBtn_clicked()
|
||||
if (vselect.exec() && vselect.selectedVersion())
|
||||
{
|
||||
auto vsn = vselect.selectedVersion();
|
||||
m_inst->setComponentVersion("com.liteloader", vsn->descriptor());
|
||||
m_inst->setComponentVersion("com.mumfrey.liteloader", vsn->descriptor());
|
||||
m_profile->reload();
|
||||
// m_profile->installVersion(vselect.selectedVersion());
|
||||
preselect(m_profile->rowCount(QModelIndex())-1);
|
||||
|
Loading…
Reference in New Issue
Block a user