Make mcInstance mutable
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
e26827b849
commit
3c87e5d31e
@ -40,7 +40,7 @@ ModrinthPackExportTask::ModrinthPackExportTask(const QString& name,
|
||||
, version(version)
|
||||
, summary(summary)
|
||||
, instance(instance)
|
||||
, mcInstance(dynamic_cast<const MinecraftInstance*>(instance.get()))
|
||||
, mcInstance(dynamic_cast<MinecraftInstance*>(instance.get()))
|
||||
, gameRoot(instance->gameRoot())
|
||||
, output(output)
|
||||
, filter(filter)
|
||||
|
@ -51,7 +51,7 @@ class ModrinthPackExportTask : public Task {
|
||||
// inputs
|
||||
const QString name, version, summary;
|
||||
const InstancePtr instance;
|
||||
const MinecraftInstance* mcInstance;
|
||||
MinecraftInstance* mcInstance;
|
||||
const QDir gameRoot;
|
||||
const QString output;
|
||||
const MMCZip::FilterFunction filter;
|
||||
|
Loading…
Reference in New Issue
Block a user