NOISSUE reload pack profile in online mode so the Minecraft release date is loaded properly

This commit is contained in:
arthomnix 2023-05-22 17:39:37 +01:00
parent e1b7630677
commit 29c78b56fc

View File

@ -46,7 +46,7 @@ CreateShortcutDialog::CreateShortcutDialog(QWidget *parent, InstancePtr instance
// TODO: check if version is affected by crashing when joining servers on launch, ideally in meta
auto mcInstance = std::dynamic_pointer_cast<MinecraftInstance>(instance);
mcInstance->getPackProfile()->reload(Net::Mode::Offline);
mcInstance->getPackProfile()->reload(Net::Mode::Online);
if (mcInstance && mcInstance->getPackProfile()->getComponent("net.minecraft")->getReleaseDateTime() >= g_VersionFilterData.quickPlayBeginsDate)
{
mcInstance->worldList()->update();