mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
Change LaunchTask to only accept MinecraftInstance
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@ -22,12 +22,11 @@
|
||||
void ReconstructAssets::executeTask()
|
||||
{
|
||||
auto instance = m_parent->instance();
|
||||
std::shared_ptr<MinecraftInstance> minecraftInstance = std::dynamic_pointer_cast<MinecraftInstance>(instance);
|
||||
auto components = minecraftInstance->getPackProfile();
|
||||
auto components = instance->getPackProfile();
|
||||
auto profile = components->getProfile();
|
||||
auto assets = profile->getMinecraftAssets();
|
||||
|
||||
if (!AssetsUtils::reconstructAssets(assets->id, minecraftInstance->resourcesDir())) {
|
||||
if (!AssetsUtils::reconstructAssets(assets->id, instance->resourcesDir())) {
|
||||
emit logLine("Failed to reconstruct Minecraft assets.", MessageLevel::Error);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user