Change LaunchTask to only accept MinecraftInstance

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2024-10-09 15:07:09 +01:00
parent a200fca45c
commit 909114bf2a
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
10 changed files with 34 additions and 37 deletions

View file

@ -58,7 +58,7 @@
AutoInstallJava::AutoInstallJava(LaunchTask* parent)
: LaunchStep(parent)
, m_instance(std::dynamic_pointer_cast<MinecraftInstance>(m_parent->instance()))
, m_instance(m_parent->instance())
, m_supported_arch(SysInfo::getSupportedJavaArchitecture()) {};
void AutoInstallJava::executeTask()